diff options
Diffstat (limited to 'apps/app_zapbarge.c')
-rwxr-xr-x | apps/app_zapbarge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_zapbarge.c b/apps/app_zapbarge.c index 852d9ab1f..d34cd1946 100755 --- a/apps/app_zapbarge.c +++ b/apps/app_zapbarge.c @@ -249,7 +249,7 @@ static int conf_exec(struct ast_channel *chan, void *data) int retrycnt = 0; int confflags = 0; int confno = 0; - char confstr[80]; + char confstr[80] = ""; if (data && !ast_strlen_zero(data)) { if ((sscanf(data, "Zap/%d", &confno) != 1) && @@ -264,7 +264,7 @@ static int conf_exec(struct ast_channel *chan, void *data) while(!confno && (++retrycnt < 4)) { /* Prompt user for conference number */ - strcpy(confstr, ""); + confstr[0] = '\0'; res = ast_app_getdata(chan, "conf-getchannel",confstr, sizeof(confstr) - 1, 0); if (res <0) goto out; if (sscanf(confstr, "%d", &confno) != 1) |