diff --git a/tests/server/sws.c b/tests/server/sws.c index df0a08da8..bf19b724a 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -37,6 +37,7 @@ #include #include #include +#include #ifdef HAVE_UNISTD_H #include @@ -228,7 +229,7 @@ int ProcessRequest(struct httprequest *req) ptr++; /* skip the slash */ /* skip all non-numericals following the slash */ - while(*ptr && !isdigit(*ptr)) + while(*ptr && !isdigit((int)*ptr)) ptr++; req->testno = strtol(ptr, &ptr, 10);