From 65be1e8d8e444d11eb5a4acc30d847367f99cfdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 21 Jan 2005 09:09:08 +0000 Subject: [PATCH] include , cast argument to isspace to unsigned char git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14519 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/getusershell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'; }