Skip to content
Snippets Groups Projects
Commit 1204348e authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix callerid split (bug #3507)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 6345a74c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment