aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_random.c
diff options
context:
space:
mode:
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 789e04beb..caf328487 100644
--- a/apps/app_random.c
+++ b/apps/app_random.c
@@ -79,7 +79,7 @@ static int random_exec(struct ast_channel *chan, void *data)
}
prob = strsep(&s,":");
- if ((!prob) || (sscanf(prob, "%d", &probint) != 1))
+ if ((!prob) || (sscanf(prob, "%3d", &probint) != 1))
probint = 0;
if ((random() % 100) + probint >= 100) {