aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_random.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-08-10 20:14:34 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-08-10 20:14:34 +0000
commitfea057f6474ed94062cf3cbf4ad096bba62d6832 (patch)
treee189c9a20520ae30231ac1c6573db5f3a289b84c /apps/app_random.c
parent247584d4d4239bc8da24b94e97211296de846046 (diff)
Changes to make 1.4.26 into 1.4.26.1v1.4.26.1
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.4.26.1@211596 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_random.c')
-rw-r--r--apps/app_random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_random.c b/apps/app_random.c
index 8484f656d..0d036413d 100644
--- a/apps/app_random.c
+++ b/apps/app_random.c
@@ -71,7 +71,7 @@ static int random_exec(struct ast_channel *chan, void *data)
s = ast_strdupa(data);
prob = strsep(&s,":");
- if ((!prob) || (sscanf(prob, "%d", &probint) != 1))
+ if ((!prob) || (sscanf(prob, "%30d", &probint) != 1))
probint = 0;
if (!deprecated) {