diff options
author | Mark Spencer <markster@digium.com> | 2005-02-04 17:45:37 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-02-04 17:45:37 +0000 |
commit | 1204348efa517bc9c49cb14e76ba5ed3a34e0f97 (patch) | |
tree | 1f1ac68feffeb8574cd1cd18d2f9946398d23b92 /callerid.c | |
parent | 6345a74c22ebff7950ed570a9f3d75c2103229c2 (diff) |
Fix callerid split (bug #3507)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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; } |