diff options
Diffstat (limited to 'apps/app_readfile.c')
-rw-r--r-- | apps/app_readfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_readfile.c b/apps/app_readfile.c index bc418aaa1..b97cd826f 100644 --- a/apps/app_readfile.c +++ b/apps/app_readfile.c @@ -89,7 +89,7 @@ static int readfile_exec(struct ast_channel *chan, void *data) } if (length) { - if ((sscanf(length, "%d", &len) != 1) || (len < 0)) { + if ((sscanf(length, "%30d", &len) != 1) || (len < 0)) { ast_log(LOG_WARNING, "%s is not a positive number, defaulting length to max\n", length); len = 0; } |