cast argument to isdigit to unsigned char

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14554 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-02-03 08:54:19 +00:00
parent c3ac82ceac
commit 49785787e2

View File

@@ -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);