aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_speex.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-08-10 19:30:55 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-08-10 19:30:55 +0000
commit0a58b6f090e35416038b228aba00cad23499770d (patch)
treeb3527de796ac80b2f4fcdb132f2d270c8f1b05cc /funcs/func_speex.c
parentf53a0bbe56fc4b41f96aad790f8de69f544d7b8f (diff)
AST-2009-005
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@211569 f38db490-d61c-443f-a65b-d21fe96a405b
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 4ddfab80b..39deabd0c 100644
--- a/funcs/func_speex.c
+++ b/funcs/func_speex.c
@@ -193,7 +193,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) {