summaryrefslogtreecommitdiff
path: root/blasms.c
diff options
context:
space:
mode:
Diffstat (limited to 'blasms.c')
-rw-r--r--blasms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blasms.c b/blasms.c
index 97a37de..373296d 100644
--- a/blasms.c
+++ b/blasms.c
@@ -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 {