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 /res/res_config_curl.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 'res/res_config_curl.c')
-rw-r--r-- | res/res_config_curl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/res/res_config_curl.c b/res/res_config_curl.c index 928a6ae3b..95b1589e2 100644 --- a/res/res_config_curl.c +++ b/res/res_config_curl.c @@ -270,7 +270,7 @@ static int update_curl(const char *url, const char *unused, const char *keyfield while (*stringp <= ' ') { stringp++; } - sscanf(stringp, "%d", &rowcount); + sscanf(stringp, "%30d", &rowcount); if (rowcount >= 0) { return (int)rowcount; @@ -334,7 +334,7 @@ static int update2_curl(const char *url, const char *unused, va_list ap) while (*stringp <= ' ') { stringp++; } - sscanf(stringp, "%d", &rowcount); + sscanf(stringp, "%30d", &rowcount); if (rowcount >= 0) { return (int)rowcount; @@ -395,7 +395,7 @@ static int store_curl(const char *url, const char *unused, va_list ap) while (*stringp <= ' ') { stringp++; } - sscanf(stringp, "%d", &rowcount); + sscanf(stringp, "%30d", &rowcount); if (rowcount >= 0) { return rowcount; @@ -461,7 +461,7 @@ static int destroy_curl(const char *url, const char *unused, const char *keyfiel while (*stringp <= ' ') { stringp++; } - sscanf(stringp, "%d", &rowcount); + sscanf(stringp, "%30d", &rowcount); if (rowcount >= 0) { return (int)rowcount; |