From 1785eefc0e123397ec0468858110d9ed6ff815db Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 21 Nov 2013 01:49:18 +0000 Subject: 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. --- manpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit