blob: 79835532c8e0d2191e050d36c063e48e0155f353 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-perf_cairo-perf-trace.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-trace.c.orig 2018-08-17 01:10:53.000000000 +0000
+++ perf/cairo-perf-trace.c
@@ -409,11 +409,11 @@ read_excludes (cairo_perf_t *perf,
/* whitespace delimits */
s = line;
- while (*s != '\0' && isspace (*s))
+ while (*s != '\0' && isspace ((unsigned char)*s))
s++;
t = s;
- while (*t != '\0' && ! isspace (*t))
+ while (*t != '\0' && ! isspace ((unsigned char)*t))
t++;
if (s != t) {
|