summaryrefslogtreecommitdiff
path: root/blasms.c
diff options
context:
space:
mode:
authorLuke Bratch <l_bratch@yahoo.co.uk>2010-10-29 01:59:09 +0100
committerLuke Bratch <l_bratch@yahoo.co.uk>2010-10-29 01:59:09 +0100
commitfcfc709333fbf8ae6887d935927c388063c03813 (patch)
tree539e2791a237d99dc46b8a461afcddd43a9ef700 /blasms.c
parentd17a8ed18ca5e154faa8f753e8dac98188afcde5 (diff)
Make name to number lookups set the correct offset
Diffstat (limited to 'blasms.c')
-rw-r--r--blasms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/blasms.c b/blasms.c
index 9cbd8c4..578c803 100644
--- a/blasms.c
+++ b/blasms.c
@@ -97,11 +97,12 @@ void settelnum(char* telnum, char* sms, int *offsetptr) {
//printf("Name match: %s\n", line);
strxfrm(telnum, line, offset);
telnum[offset] = '\0';
+ break;
}
}
}
- *offsetptr = offset;
+ *offsetptr = *offsetptr + strlen(name) + 1;
}
int main(int argc, char *argv[]) {