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

File: [cvs.NetBSD.org] / pkgsrc / graphics / cairo / patches / Attic / patch-boilerplate_cairo-boilerplate.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-boilerplate_cairo-boilerplate.c,v 1.1 2022/04/05 10:06:41 riastradh Exp $

Fix ctype(3) abuse.

--- boilerplate/cairo-boilerplate.c.orig	2018-08-17 01:10:53.000000000 +0000
+++ boilerplate/cairo-boilerplate.c
@@ -566,7 +566,7 @@ _cairo_boilerplate_target_matches_name (
     if (! (name_len == 1 && 0 == strncmp (tname, "?", 1))) { /* wildcard? */
 	if (0 != strncmp (target->name, tname, name_len)) /* exact match? */
 	    return FALSE;
-	if (isalnum (target->name[name_len]))
+	if (isalnum ((unsigned char)target->name[name_len]))
 	    return FALSE;
     }