mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
include ctype.h for isdigit()
This commit is contained in:
parent
eff36caea8
commit
b749910e6c
@ -37,6 +37,7 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -228,7 +229,7 @@ int ProcessRequest(struct httprequest *req)
|
|||||||
ptr++; /* skip the slash */
|
ptr++; /* skip the slash */
|
||||||
|
|
||||||
/* skip all non-numericals following the slash */
|
/* skip all non-numericals following the slash */
|
||||||
while(*ptr && !isdigit(*ptr))
|
while(*ptr && !isdigit((int)*ptr))
|
||||||
ptr++;
|
ptr++;
|
||||||
|
|
||||||
req->testno = strtol(ptr, &ptr, 10);
|
req->testno = strtol(ptr, &ptr, 10);
|
||||||
|
Loading…
Reference in New Issue
Block a user