diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-22 04:12:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-22 04:12:49 +0000 |
commit | f34a9f0a9d06ba7a8b2ff945df3a26db7970c69b (patch) | |
tree | d57205672d49f3cdb33f1fc9a1a8f910adf8c9f9 /sbin/mount_msdos/mount_msdos.c | |
parent | 04e705a232d9b6abc44accfde7b9a33fe3e19510 (diff) |
Whole bunch of (unsigned char) casts carefully added for ctype calls.
Careful second audit by millert
Diffstat (limited to 'sbin/mount_msdos/mount_msdos.c')
-rw-r--r-- | sbin/mount_msdos/mount_msdos.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/mount_msdos/mount_msdos.c b/sbin/mount_msdos/mount_msdos.c index 46380d6ee12..9cd5876b779 100644 --- a/sbin/mount_msdos/mount_msdos.c +++ b/sbin/mount_msdos/mount_msdos.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount_msdos.c,v 1.27 2012/12/04 02:27:00 deraadt Exp $ */ +/* $OpenBSD: mount_msdos.c,v 1.28 2013/11/22 04:12:48 deraadt Exp $ */ /* $NetBSD: mount_msdos.c,v 1.16 1996/10/24 00:12:50 cgd Exp $ */ /* @@ -163,7 +163,8 @@ a_gid(char *s) if ((gr = getgrnam(s)) != NULL) gid = gr->gr_gid; else { - for (gname = s; isdigit(*s); ++s); + for (gname = s; isdigit((unsigned char)*s); ++s) + ; if (!*s) gid = atoi(gname); else @@ -182,7 +183,8 @@ a_uid(char *s) if ((pw = getpwnam(s)) != NULL) uid = pw->pw_uid; else { - for (uname = s; isdigit(*s); ++s); + for (uname = s; isdigit((unsigned char)*s); ++s) + ; if (!*s) uid = atoi(uname); else |