diff options
Diffstat (limited to 'blasms.c')
-rw-r--r-- | blasms.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -123,7 +123,7 @@ void settelnum(char* telnum, char* sms, int *offsetptr) { curname[j] = '\0'; if (!strcmp(name, curname)) { strncpy(telnum, line, offset - 1); - telnum[offset] = '\0'; + telnum[offset - 1] = '\0'; *offsetptr = *offsetptr + strlen(name) + 1; return; } else { |