aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_speex.c
diff options
context:
space:
mode:
Diffstat (limited to 'funcs/func_speex.c')
-rw-r--r--funcs/func_speex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_speex.c b/funcs/func_speex.c
index edfa3579b..d5246b0bd 100644
--- a/funcs/func_speex.c
+++ b/funcs/func_speex.c
@@ -239,7 +239,7 @@ static int speex_write(struct ast_channel *chan, const char *cmd, char *data, co
}
if (!strcasecmp(cmd, "agc")) {
- if (!sscanf(value, "%f", &(*sdi)->agclevel))
+ if (!sscanf(value, "%30f", &(*sdi)->agclevel))
(*sdi)->agclevel = ast_true(value) ? DEFAULT_AGC_LEVEL : 0.0;
if ((*sdi)->agclevel > 32768.0) {