diff options
-rwxr-xr-x | apps/app_setcidname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_setcidname.c b/apps/app_setcidname.c index c73af9a43..ee430911b 100755 --- a/apps/app_setcidname.c +++ b/apps/app_setcidname.c @@ -72,7 +72,7 @@ static int setcallerid_exec(struct ast_channel *chan, void *data) strncpy(newcid, l, 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; |