diff options
Diffstat (limited to 'apps/app_setcidname.c')
-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 20cb23e3f..4126942af 100755 --- a/apps/app_setcidname.c +++ b/apps/app_setcidname.c @@ -61,7 +61,7 @@ static int setcallerid_exec(struct ast_channel *chan, void *data) } if (data) - strncpy(tmp, (char *)data, sizeof(tmp) - 1); + ast_copy_string(tmp, (char *)data, sizeof(tmp)); opt = strchr(tmp, '|'); if (opt) { *opt = '\0'; |