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/fdisk/misc.c | |
parent | 04e705a232d9b6abc44accfde7b9a33fe3e19510 (diff) |
Whole bunch of (unsigned char) casts carefully added for ctype calls.
Careful second audit by millert
Diffstat (limited to 'sbin/fdisk/misc.c')
-rw-r--r-- | sbin/fdisk/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk/misc.c b/sbin/fdisk/misc.c index 0cdf734d0d6..f3100828d99 100644 --- a/sbin/fdisk/misc.c +++ b/sbin/fdisk/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.31 2013/03/21 18:45:58 deraadt Exp $ */ +/* $OpenBSD: misc.c,v 1.32 2013/11/22 04:12:47 deraadt Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -266,7 +266,7 @@ getuint(disk_t *disk, char *prompt, u_int32_t oval, u_int32_t maxval) } /* deal with units */ - switch (tolower(buf[n-1])) { + switch (tolower((unsigned char)buf[n-1])) { case 'c': unit = 'c'; mult = secpercyl; |