From 97a6bf07012f5a55d16f28c3bb3d039a09f8d700 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 22 Mar 2017 21:58:37 +0100 Subject: Fix passing plain char into ctype.h is* functions Change-Id: I4de56462e1fe5bba3035fec691feda91be88b434 --- soltools/cpp/_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'soltools/cpp') diff --git a/soltools/cpp/_unix.c b/soltools/cpp/_unix.c index 1010e3084eb6..274ee5acaf3a 100644 --- a/soltools/cpp/_unix.c +++ b/soltools/cpp/_unix.c @@ -149,7 +149,7 @@ void case 'w': dp = &optarg[n + 1]; n += (int)strlen(dp); - while (isspace(*dp)) dp++; + while (isspace((unsigned char)*dp)) dp++; for (i = NINCLUDE - 1; i >= 0; i--) { -- cgit