summaryrefslogtreecommitdiff
path: root/apps/app_zapbarge.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-07-14 07:34:34 +0000
committerMark Spencer <markster@digium.com>2004-07-14 07:34:34 +0000
commit872685d0885ae3564660178706845faf43aaca64 (patch)
tree54b0d7240765bc43ef378f171a536e6bc7d206d9 /apps/app_zapbarge.c
parent4d32c4612623ecbff58f21286bc18d0000fe09aa (diff)
Merge rgagnon's pedantic string changes (apps n-z) (bug #2038)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_zapbarge.c')
-rwxr-xr-xapps/app_zapbarge.c4
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)