[BACK]Return to patch-perf_cairo-perf-report.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-perf-report.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-perf-report.c,v 1.1 2022/04/05 10:06:41 riastradh Exp $

Fix ctype(3) abuse.

--- 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) {						\