aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_readfile.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-08-10 21:28:06 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-08-10 21:28:06 +0000
commit5f4f6a16c6f8445c03929d005d1b54d7e33e2a0b (patch)
treef569ed2f6bd68574ed062e0071f7b162f71fe631 /apps/app_readfile.c
parent2afe39172fa21bff7deb93028e6fca050e6757e3 (diff)
Changes for 1.6.0.12v1.6.0.12
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.6.0.12@211672 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_readfile.c')
-rw-r--r--apps/app_readfile.c2
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;
}