summaryrefslogtreecommitdiff
path: root/perf
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2022-04-09 21:54:38 +0930
committerAdrian Johnson <ajohnson@redneon.com>2022-04-09 22:08:57 +0930
commit5b18aeffbbd1641962f2ae374a3cb773fe7a6d6e (patch)
tree372b56c4369e8d49856ac74e98c17a716cb6efc3 /perf
parent20a54465c597b4f90ab35d73cab25b6e89dfa9bb (diff)
downloadcairo-5b18aeffbbd1641962f2ae374a3cb773fe7a6d6e.tar.gz
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.
Diffstat (limited to 'perf')
-rw-r--r--perf/cairo-perf-report.c3
1 files changed, 2 insertions, 1 deletions
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 <stdio.h>
#include <stdlib.h>
@@ -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) { \