mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user