summaryrefslogtreecommitdiff
path: root/graphics/cairo/patches/patch-perf_cairo-perf-report.c
blob: 50dafbf6f6c43ea3354b55f99f34fe33690ad5f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-perf_cairo-perf-report.c,v 1.2 2022/04/07 10:57:57 riastradh Exp $

Fix ctype(3) abuse.
https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/309

--- perf/cairo-perf-report.c.orig	2018-08-17 01:10:53.000000000 +0000
+++ perf/cairo-perf-report.c
@@ -100,7 +100,7 @@ do {									\
 #define parse_string(result)						\
 do {									\
     for (end = s; *end; end++)						\
-	if (isspace (*end))						\
+	if (isspace ((unsigned char)*end))				\
 	    break;							\
     (result) = strndup (s, end - s);					\
     if ((result) == NULL) {						\