summaryrefslogtreecommitdiff
path: root/x11/libXaw/patches/patch-src_TextSink.c
blob: ee3bd3058bd92e35d79ec927b1121b7c8a12814f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-src_TextSink.c,v 1.2 2022/04/04 12:55:28 wiz Exp $

Fix ctype(3) abuse.
https://gitlab.freedesktop.org/xorg/lib/libxaw/-/merge_requests/11

--- src/TextSink.c.orig	2021-03-27 17:40:21.000000000 +0000
+++ src/TextSink.c
@@ -1251,7 +1251,7 @@ _XawTextSinkAddProperty(XawTextPropertyL
 	weight = asterisk;
     if (property->slant != NULLQUARK) {
 	slant = XrmQuarkToString(property->slant);
-	if (toupper(*slant) != 'R')
+	if (toupper((unsigned char)*slant) != 'R')
 	    slant = asterisk;	/* X defaults to italics, so, don't
 				   care in resolving between `I' and `O' */
     }