From 9ef88ea3276b58a09d746415693e8d496a8d6e74 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 18 Mar 2017 19:37:36 +0100 Subject: [PATCH] - need to be careful with ctype functions - the way they are written they will do bad things with non-ASCII characters if signed chars are fed to them. --- src/d_dehacked.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_dehacked.cpp b/src/d_dehacked.cpp index d05406910d..85a8e8c581 100644 --- a/src/d_dehacked.cpp +++ b/src/d_dehacked.cpp @@ -2030,7 +2030,7 @@ static int PatchPars (int dummy) { while ('\0' != *str) { - if (isspace(*str)) + if (isspace((unsigned char)*str)) { return str; }