diff options
Diffstat (limited to 'apps/app_dahdibarge.c')
-rw-r--r-- | apps/app_dahdibarge.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_dahdibarge.c b/apps/app_dahdibarge.c index cfa445acc..c41f7b685 100644 --- a/apps/app_dahdibarge.c +++ b/apps/app_dahdibarge.c @@ -267,8 +267,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; } @@ -282,7 +282,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) { |