summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-07-14 07:48:47 +0000
committerMark Spencer <markster@digium.com>2004-07-14 07:48:47 +0000
commit2a9d43407bb7433a53dac487243b54102f94c902 (patch)
treee7e8a7e95247c92034b7edef8f5f5f9d94b25ded /apps
parent8ed49644a643c17b2a85ea8fe082fc45eabbd197 (diff)
Oops forgot one (bug #2038)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_setcidname.c2
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;