diff options
Diffstat (limited to 'main/dsp.c')
-rw-r--r-- | main/dsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/dsp.c b/main/dsp.c index 168c1fd5a..6488618ed 100644 --- a/main/dsp.c +++ b/main/dsp.c @@ -1626,7 +1626,7 @@ static int _dsp_init(int reload) const char *value; value = ast_variable_retrieve(cfg, "default", "silencethreshold"); - if (value && sscanf(value, "%d", &thresholds[THRESHOLD_SILENCE]) != 1) { + if (value && sscanf(value, "%30d", &thresholds[THRESHOLD_SILENCE]) != 1) { ast_log(LOG_WARNING, "%s: '%s' is not a valid silencethreshold value\n", CONFIG_FILE_NAME, value); thresholds[THRESHOLD_SILENCE] = 256; } else if (!value) |