summaryrefslogtreecommitdiffstats
path: root/manpath.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-11-21 01:49:18 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-11-21 01:49:18 +0000
commit1785eefc0e123397ec0468858110d9ed6ff815db (patch)
tree7b9a123fdcc9ee6e42b5955f41bf3f0a4325eafd /manpath.c
parentd6723f74a684ee974e1b51a37f806d2af1fcaaa7 (diff)
downloadmandoc-1785eefc0e123397ec0468858110d9ed6ff815db.tar.gz
My audit of mandoc revealed one missing (unsigned char) cast
in an isspace() argument containing arbitrary char data. Thanks to deraadt@ for triggering the audit.
Diffstat (limited to 'manpath.c')
-rw-r--r--manpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/manpath.c b/manpath.c
index f0dee31d..9496d8f9 100644
--- a/manpath.c
+++ b/manpath.c
@@ -209,7 +209,7 @@ manpath_manconf(struct manpaths *dirs, const char *file)
if (strncmp(MAN_CONF_KEY, p, keysz))
continue;
p += keysz;
- while (isspace(*p))
+ while (isspace((unsigned char)*p))
p++;
if ('\0' == *p)
continue;