aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_zapbarge.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-14 07:34:34 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-14 07:34:34 +0000
commit4e18ef688947854313b99f35aa30c0e7d8ae29cd (patch)
tree54b0d7240765bc43ef378f171a536e6bc7d206d9 /apps/app_zapbarge.c
parent59d780973e0c1aab681be9dcba1baa2706caf92f (diff)
Merge rgagnon's pedantic string changes (apps n-z) (bug #2038)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3429 f38db490-d61c-443f-a65b-d21fe96a405b
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)