[BACK]Return to patch-perf_cairo-analyse-trace.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / graphics / cairo / patches

File: [cvs.NetBSD.org] / pkgsrc / graphics / cairo / patches / Attic / patch-perf_cairo-analyse-trace.c (download)

Revision 1.1, Tue Apr 5 10:06:41 2022 UTC (22 months, 2 weeks ago) by riastradh
Branch: MAIN

graphics/cairo: Fix ctype(3) abuse.

$NetBSD: patch-perf_cairo-analyse-trace.c,v 1.1 2022/04/05 10:06:41 riastradh Exp $

Fix ctype(3) abuse.

--- perf/cairo-analyse-trace.c.orig	2018-08-17 01:10:53.000000000 +0000
+++ perf/cairo-analyse-trace.c
@@ -292,11 +292,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) {