diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-08-10 19:20:57 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-08-10 19:20:57 +0000 |
commit | 642bec4d6fea7afad99b6a4853418081137a48ba (patch) | |
tree | 2596a6cb913ad8bd78e4670d298dc1d4682b2d23 /addons/cdr_mysql.c | |
parent | 41894bea92b7d2079fd666a3186b84ff92a5e0e5 (diff) |
AST-2009-005
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'addons/cdr_mysql.c')
-rw-r--r-- | addons/cdr_mysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/cdr_mysql.c b/addons/cdr_mysql.c index 2a3ef4365..a6d37b31d 100644 --- a/addons/cdr_mysql.c +++ b/addons/cdr_mysql.c @@ -383,7 +383,7 @@ static int my_load_config_number(struct ast_config *cfg, const char *category, c tmp = ast_variable_retrieve(cfg, category, variable); - if (!tmp || sscanf(tmp, "%d", field) < 1) + if (!tmp || sscanf(tmp, "%30d", field) < 1) *field = def; return 0; |