$NetBSD: patch-ac,v 1.4 2022/11/27 13:14:00 triaxx Exp $ Compliance with isspace() documentation. --- src/webadmin.c.orig 2021-07-01 16:59:57.000000000 +0000 +++ src/webadmin.c @@ -403,12 +403,12 @@ void * adminchild(struct clientparam* pa sb = strchr(buf, ':'); if(!sb)continue; ++sb; - while(isspace(*sb))sb++; + while(isspace((unsigned char)*sb))sb++; if(!*sb || strncasecmp(sb, "basic", 5)){ continue; } sb+=5; - while(isspace(*sb))sb++; + while(isspace((unsigned char)*sb))sb++; i = de64((unsigned char *)sb, (unsigned char *)username, 255); if(i<=0)continue; username[i] = 0; @@ -424,13 +424,13 @@ void * adminchild(struct clientparam* pa } else if(i > 15 && (!strncasecmp(buf, "content-length:", 15))){ sb = buf + 15; - while(isspace(*sb))sb++; + while(isspace((unsigned char)*sb))sb++; sscanf(sb, "%u", &contentlen); if(contentlen > LINESIZE*1024) contentlen = 0; } else if(i > 13 && (!strncasecmp(buf, "content-type:", 13))){ sb = buf + 13; - while(isspace(*sb))sb++; + while(isspace((unsigned char)*sb))sb++; if(!strncasecmp(sb, "x-www-form-urlencoded", 21)) isform = 1; } }