mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +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:
@@ -1259,7 +1259,7 @@ static int parse_gain_value(const char *gain_type, const char *value)
|
||||
float gain;
|
||||
|
||||
/* try to scan number */
|
||||
if (sscanf(value, "%f", &gain) != 1)
|
||||
if (sscanf(value, "%30f", &gain) != 1)
|
||||
{
|
||||
ast_log(LOG_ERROR, "Invalid %s value '%s' in '%s' config\n",
|
||||
value, gain_type, config);
|
||||
|
Reference in New Issue
Block a user