AST-2009-005
[asterisk/asterisk.git] / main / dsp.c
index ab7cacf..83a6dd7 100644 (file)
@@ -1670,7 +1670,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) {