aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dahdibarge.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_dahdibarge.c')
-rw-r--r--apps/app_dahdibarge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_dahdibarge.c b/apps/app_dahdibarge.c
index f16b4dea6..a7aec81f2 100644
--- a/apps/app_dahdibarge.c
+++ b/apps/app_dahdibarge.c
@@ -258,8 +258,8 @@ static int conf_exec(struct ast_channel *chan, void *data)
char confnostr[80] = "";
if (!ast_strlen_zero(data)) {
- if ((sscanf(data, "DAHDI/%d", &confno) != 1) &&
- (sscanf(data, "%d", &confno) != 1)) {
+ if ((sscanf(data, "DAHDI/%30d", &confno) != 1) &&
+ (sscanf(data, "%30d", &confno) != 1)) {
ast_log(LOG_WARNING, "DAHDIBarge Argument (if specified) must be a channel number, not '%s'\n", (char *)data);
return 0;
}
@@ -273,7 +273,7 @@ static int conf_exec(struct ast_channel *chan, void *data)
confnostr[0] = '\0';
res = ast_app_getdata(chan, "conf-getchannel",confnostr, sizeof(confnostr) - 1, 0);
if (res <0) goto out;
- if (sscanf(confnostr, "%d", &confno) != 1)
+ if (sscanf(confnostr, "%30d", &confno) != 1)
confno = 0;
}
if (confno) {