aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_zapbarge.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_zapbarge.c')
-rw-r--r--apps/app_zapbarge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_zapbarge.c b/apps/app_zapbarge.c
index 9fea023ed..416cbce73 100644
--- a/apps/app_zapbarge.c
+++ b/apps/app_zapbarge.c
@@ -272,8 +272,8 @@ static int conf_exec(struct ast_channel *chan, void *data)
LOCAL_USER_ADD(u);
if (!ast_strlen_zero(data)) {
- if ((sscanf(data, "Zap/%d", &confno) != 1) &&
- (sscanf(data, "%d", &confno) != 1)) {
+ if ((sscanf(data, "Zap/%3d", &confno) != 1) &&
+ (sscanf(data, "%3d", &confno) != 1)) {
ast_log(LOG_WARNING, "ZapBarge Argument (if specified) must be a channel number, not '%s'\n", (char *)data);
LOCAL_USER_REMOVE(u);
return 0;
@@ -288,7 +288,7 @@ static int conf_exec(struct ast_channel *chan, void *data)
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)
+ if (sscanf(confstr, "%3d", &confno) != 1)
confno = 0;
}
if (confno) {