From 49785787e2a15e1c5c943db744a5a351997618a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 3 Feb 2005 08:54:19 +0000 Subject: [PATCH] cast argument to isdigit to unsigned char git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14554 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kcm/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kcm/config.c b/kcm/config.c index d37779240..adfe425ff 100644 --- a/kcm/config.c +++ b/kcm/config.c @@ -153,7 +153,7 @@ static int parse_owners(kcm_ccache ccache) int gid_p = 0; if (system_user != NULL) { - if (isdigit(system_user[0])) { + if (isdigit((unsigned char)system_user[0])) { pw = getpwuid(atoi(system_user)); } else { pw = getpwnam(system_user); @@ -172,7 +172,7 @@ static int parse_owners(kcm_ccache ccache) } if (system_group != NULL) { - if (isdigit(system_group[0])) { + if (isdigit((unsigned char)system_group[0])) { gr = getgrgid(atoi(system_group)); } else { gr = getgrnam(system_group);