mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
AST-2009-005
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user