diff options
Diffstat (limited to 'apps/app_talkdetect.c')
-rw-r--r-- | apps/app_talkdetect.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_talkdetect.c b/apps/app_talkdetect.c index 79cbbd5d0..bf35787bb 100644 --- a/apps/app_talkdetect.c +++ b/apps/app_talkdetect.c @@ -89,15 +89,15 @@ static int background_detect_exec(struct ast_channel *chan, void *data) strsep(&stringp, "|"); options = strsep(&stringp, "|"); if (options) { - if ((sscanf(options, "%d", &x) == 1) && (x > 0)) + if ((sscanf(options, "%30d", &x) == 1) && (x > 0)) sil = x; options = strsep(&stringp, "|"); if (options) { - if ((sscanf(options, "%d", &x) == 1) && (x > 0)) + if ((sscanf(options, "%30d", &x) == 1) && (x > 0)) min = x; options = strsep(&stringp, "|"); if (options) { - if ((sscanf(options, "%d", &x) == 1) && (x > 0)) + if ((sscanf(options, "%30d", &x) == 1) && (x > 0)) max = x; } } |