diff options
Diffstat (limited to 'apps/app_random.c')
-rw-r--r-- | apps/app_random.c | 2 |
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) { |