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 252c4454d..8c3bcae64 100644 --- a/apps/app_readfile.c +++ b/apps/app_readfile.c @@ -94,7 +94,7 @@ static int readfile_exec(struct ast_channel *chan, const char *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; } |