diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-02-04 17:45:37 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-02-04 17:45:37 +0000 |
commit | eb3302125c10df21be0d315a907b5fffd079a490 (patch) | |
tree | 1f1ac68feffeb8574cd1cd18d2f9946398d23b92 /callerid.c | |
parent | 35118d56ad1ebc69538b594ace858317d9ed8725 (diff) |
Fix callerid split (bug #3507)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4966 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'callerid.c')
-rwxr-xr-x | callerid.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/callerid.c b/callerid.c index d5f94ee30..19d0d4b6e 100755 --- a/callerid.c +++ b/callerid.c @@ -706,9 +706,12 @@ int ast_callerid_split(const char *buf, char *name, int namelen, char *num, int ast_callerid_parse(tmp, &n, &l); if (n) strncpy(name, n, namelen - 1); + else + name[0] = '\0'; if (l) { ast_shrink_phone_number(l); strncpy(num, l, numlen - 1); - } + } else + num[0] = '\0'; return 0; } |