From 385b476a3080627bb3814885b7ddc63c659af2e9 Mon Sep 17 00:00:00 2001 From: Roy Sprowl Date: Thu, 7 Dec 2017 21:51:47 -0800 Subject: [PATCH] Fix signed char fed to isspace --- parson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parson.c b/parson.c index 6345e74..6333a33 100644 --- a/parson.c +++ b/parson.c @@ -45,7 +45,7 @@ #define SIZEOF_TOKEN(a) (sizeof(a) - 1) #define SKIP_CHAR(str) ((*str)++) -#define SKIP_WHITESPACES(str) while (isspace(**str)) { SKIP_CHAR(str); } +#define SKIP_WHITESPACES(str) while (isspace((unsigned char)(**str))) { SKIP_CHAR(str); } #define MAX(a, b) ((a) > (b) ? (a) : (b)) #undef malloc