$NetBSD: patch-af,v 1.1 2004/12/12 23:51:10 kleink Exp $ --- src/racoon/str2val.c.orig 2004-09-21 16:23:22.000000000 +0200 +++ src/racoon/str2val.c 2004-12-13 00:41:21.000000000 +0100 @@ -87,9 +87,9 @@ i = 0; for (p = str; *p != '\0'; p++) { - if (isxdigit(*p)) + if (isxdigit((unsigned char)*p)) i++; - else if (isspace(*p)) + else if (isspace((unsigned char)*p)) ; else return NULL; @@ -104,7 +104,7 @@ i = 0; f = 0; for (rp = dst, p = str; *p != '\0'; p++) { - if (isxdigit(*p)) { + if (isxdigit((unsigned char)*p)) { if (!f) { b[0] = *p; f = 1;