summaryrefslogtreecommitdiff
path: root/src/TextSink.c
diff options
context:
space:
mode:
authorTaylor R Campbell <riastradh@netbsd.org>2022-04-04 14:53:48 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-05-07 18:09:36 +0000
commit01c0b0365a50a08e69dffe3c63ac62343560b26c (patch)
tree1b9d75ed332d956f7cd8daf62a2ec0e2d3461076 /src/TextSink.c
parent794367d1ac396842c0213064ebcfe1f4e2219657 (diff)
downloadxorg-lib-libXaw-01c0b0365a50a08e69dffe3c63ac62343560b26c.tar.gz
Fix ctype(3) users.
The API requires "unsigned char" arguments. Signed-off-by: Thomas Klausner <tk@giga.or.at>
Diffstat (limited to 'src/TextSink.c')
-rw-r--r--src/TextSink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TextSink.c b/src/TextSink.c
index 40442e9..d9e3f7b 100644
--- a/src/TextSink.c
+++ b/src/TextSink.c
@@ -1251,7 +1251,7 @@ _XawTextSinkAddProperty(XawTextPropertyList *list, XawTextProperty *property,
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' */
}