From d99da55a16b32f4463c40d504fa2ffee4ba8966d Mon Sep 17 00:00:00 2001 From: russell Date: Sun, 10 Jul 2005 23:12:25 +0000 Subject: more ast_copy_string conversions git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6074 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_setcallerid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/app_setcallerid.c') diff --git a/apps/app_setcallerid.c b/apps/app_setcallerid.c index 68e9653bd..5104502ca 100755 --- a/apps/app_setcallerid.c +++ b/apps/app_setcallerid.c @@ -93,7 +93,7 @@ static int setcallerid_exec(struct ast_channel *chan, void *data) char *opt; int anitoo = 0; if (data) - strncpy(tmp, (char *)data, sizeof(tmp) - 1); + ast_copy_string(tmp, (char *)data, sizeof(tmp)); opt = strchr(tmp, '|'); if (opt) { *opt = '\0'; -- cgit v1.2.3