diff options
author | Mark Spencer <markster@digium.com> | 2004-07-14 07:34:34 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-07-14 07:34:34 +0000 |
commit | 872685d0885ae3564660178706845faf43aaca64 (patch) | |
tree | 54b0d7240765bc43ef378f171a536e6bc7d206d9 /apps/app_setcidnum.c | |
parent | 4d32c4612623ecbff58f21286bc18d0000fe09aa (diff) |
Merge rgagnon's pedantic string changes (apps n-z) (bug #2038)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_setcidnum.c')
-rwxr-xr-x | apps/app_setcidnum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_setcidnum.c b/apps/app_setcidnum.c index 9aef3bacb..b96330ec5 100755 --- a/apps/app_setcidnum.c +++ b/apps/app_setcidnum.c @@ -73,7 +73,7 @@ static int setcallerid_exec(struct ast_channel *chan, void *data) strncpy(newcid, n, sizeof(newcid) - 1); } } else - strncpy(newcid, tmp, sizeof(newcid)); + strncpy(newcid, tmp, sizeof(newcid) - 1); ast_set_callerid(chan, !ast_strlen_zero(newcid) ? newcid : NULL, anitoo); LOCAL_USER_REMOVE(u); return res; |