diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-08-10 19:25:03 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-08-10 19:25:03 +0000 |
commit | dbef80dfa2752f6306e45af841d5573ccfd14f03 (patch) | |
tree | 638d77074098ba848a915b044a9c6b4d12efb4ca /res/res_config_curl.c | |
parent | 55ecd87dff70a3ca8ff715adae8d95b68c238e26 (diff) |
AST-2009-005
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@211551 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_config_curl.c')
-rw-r--r-- | res/res_config_curl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_config_curl.c b/res/res_config_curl.c index f36a5f6a9..ed561d62b 100644 --- a/res/res_config_curl.c +++ b/res/res_config_curl.c @@ -264,7 +264,7 @@ static int update_curl(const char *url, const char *unused, const char *keyfield stringp = buffer; while (*stringp <= ' ') stringp++; - sscanf(stringp, "%d", &rowcount); + sscanf(stringp, "%30d", &rowcount); ast_free(buffer); ast_free(query); @@ -327,7 +327,7 @@ static int store_curl(const char *url, const char *unused, va_list ap) stringp = buffer; while (*stringp <= ' ') stringp++; - sscanf(stringp, "%d", &rowcount); + sscanf(stringp, "%30d", &rowcount); ast_free(buffer); ast_free(query); @@ -395,7 +395,7 @@ static int destroy_curl(const char *url, const char *unused, const char *keyfiel stringp = buffer; while (*stringp <= ' ') stringp++; - sscanf(stringp, "%d", &rowcount); + sscanf(stringp, "%30d", &rowcount); ast_free(buffer); ast_free(query); |