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

Oops forgot one (bug #2038)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 8ed49644
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ static int setcallerid_exec(struct ast_channel *chan, void *data) ...@@ -72,7 +72,7 @@ static int setcallerid_exec(struct ast_channel *chan, void *data)
strncpy(newcid, l, sizeof(newcid) - 1); strncpy(newcid, l, sizeof(newcid) - 1);
} }
} else } else
strncpy(newcid, tmp, sizeof(newcid)); strncpy(newcid, tmp, sizeof(newcid) - 1);
ast_set_callerid(chan, !ast_strlen_zero(newcid) ? newcid : NULL, anitoo); ast_set_callerid(chan, !ast_strlen_zero(newcid) ? newcid : NULL, anitoo);
LOCAL_USER_REMOVE(u); LOCAL_USER_REMOVE(u);
return res; return res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment