From 5b18aeffbbd1641962f2ae374a3cb773fe7a6d6e Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Sat, 9 Apr 2022 21:54:38 +0930 Subject: Replace use of ctype functions with internal version where only ASCII chars are used In !309 Taylor R Campbell found a number of instances of ctype incorrectly passed a signed char. In many cases, where only ASCII characters are used, the code should have been using the cairo version of the ctype function to avoid locale issues. --- perf/cairo-perf-report.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perf') diff --git a/perf/cairo-perf-report.c b/perf/cairo-perf-report.c index 64a680242..163368fee 100644 --- a/perf/cairo-perf-report.c +++ b/perf/cairo-perf-report.c @@ -32,6 +32,7 @@ #include "cairo-perf.h" #include "cairo-missing.h" #include "cairo-stats.h" +#include "cairo-ctype-inline.h" #include #include @@ -100,7 +101,7 @@ do { \ #define parse_string(result) \ do { \ for (end = s; *end; end++) \ - if (isspace (*end)) \ + if (_cairo_isspace (*end)) \ break; \ (result) = strndup (s, end - s); \ if ((result) == NULL) { \ -- cgit v1.2.1