Index: apps/app_zapscan.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_zapscan.c,v retrieving revision 1.13 diff -u -p -r1.13 app_zapscan.c --- apps/app_zapscan.c 22 Jun 2004 19:32:52 -0000 1.13 +++ apps/app_zapscan.c 13 Jul 2004 22:20:20 -0000 @@ -284,7 +284,7 @@ static int conf_exec(struct ast_channel struct localuser *u; int confflags = 0; int confno = 0; - char confstr[80], *tmp; + char confstr[80] = "", *tmp; struct ast_channel *tempchan = NULL, *lastchan = NULL,*ichan = NULL; struct ast_frame *f; int input=0; @@ -319,7 +319,7 @@ static int conf_exec(struct ast_channel break; 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); - strcpy(confstr, tempchan->name); + strncpy(confstr, tempchan->name, sizeof(confstr) - 1); ast_mutex_unlock(&tempchan->lock); if ((tmp = strchr(confstr,'-'))) { *tmp = '\0';