diff options
Diffstat (limited to 'apps/app_disa.c')
-rw-r--r-- | apps/app_disa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_disa.c b/apps/app_disa.c index 2ac124525..159129100 100644 --- a/apps/app_disa.c +++ b/apps/app_disa.c @@ -249,7 +249,7 @@ static int disa_exec(struct ast_channel *chan, void *data) if (j == '#') /* end of password */ { /* see if this is an integer */ - if (sscanf(args.passcode,"%d",&j) < 1) + if (sscanf(args.passcode,"%30d",&j) < 1) { /* nope, it must be a filename */ fp = fopen(args.passcode,"r"); if (!fp) @@ -274,7 +274,7 @@ static int disa_exec(struct ast_channel *chan, void *data) ast_log(LOG_DEBUG, "Mailbox: %s\n",args.mailbox); /* password must be in valid format (numeric) */ - if (sscanf(args.passcode,"%d",&j) < 1) continue; + if (sscanf(args.passcode,"%30d",&j) < 1) continue; /* if we got it */ if (!strcmp(exten,args.passcode)) { if (ast_strlen_zero(args.context)) |