summaryrefslogtreecommitdiff
path: root/apps/app_zapscan.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2005-07-10 23:12:25 +0000
committerRussell Bryant <russell@russellbryant.com>2005-07-10 23:12:25 +0000
commit206f712599e504d8b20ff48663e130a9726f8896 (patch)
treea725ca8f608e13f6dda4ebce3d55d8abafb9317a /apps/app_zapscan.c
parentedbc500b7734ec5d8aff00d928984902bf65608f (diff)
more ast_copy_string conversions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_zapscan.c')
-rwxr-xr-xapps/app_zapscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_zapscan.c b/apps/app_zapscan.c
index 0ce58bbd0..20f6c6569 100755
--- a/apps/app_zapscan.c
+++ b/apps/app_zapscan.c
@@ -332,7 +332,7 @@ static int conf_exec(struct ast_channel *chan, void *data)
}
if ( tempchan && tempchan->type && (!strcmp(tempchan->type, "Zap")) && (tempchan != chan) ) {
ast_verbose(VERBOSE_PREFIX_3 "Zap channel %s is in-use, monitoring...\n", tempchan->name);
- strncpy(confstr, tempchan->name, sizeof(confstr) - 1);
+ ast_copy_string(confstr, tempchan->name, sizeof(confstr));
ast_mutex_unlock(&tempchan->lock);
if ((tmp = strchr(confstr,'-'))) {
*tmp = '\0';