diff --git a/lib/roken/getusershell.c b/lib/roken/getusershell.c index 347fd25f7..c8251fad6 100644 --- a/lib/roken/getusershell.c +++ b/lib/roken/getusershell.c @@ -42,6 +42,7 @@ RCSID("$Id$"); #include #include #include +#include #ifdef HAVE_PATHS_H #include #endif @@ -179,7 +180,7 @@ initshells() if (*cp == '#' || *cp == '\0') continue; *sp++ = cp; - while (!isspace(*cp) && *cp != '#' && *cp != '\0') + while (!isspace((unsigned char)*cp) && *cp != '#' && *cp != '\0') cp++; *cp++ = '\0'; }