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 8762ef860..d7a114276 100644 --- a/apps/app_readfile.c +++ b/apps/app_readfile.c @@ -73,7 +73,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; } |