diff options
author | Taylor R Campbell <riastradh@netbsd.org> | 2022-04-04 14:53:48 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-05-07 18:09:36 +0000 |
commit | 01c0b0365a50a08e69dffe3c63ac62343560b26c (patch) | |
tree | 1b9d75ed332d956f7cd8daf62a2ec0e2d3461076 /src/XawIm.c | |
parent | 794367d1ac396842c0213064ebcfe1f4e2219657 (diff) | |
download | xorg-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/XawIm.c')
-rw-r--r-- | src/XawIm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/XawIm.c b/src/XawIm.c index db0f3e8..ebc5ede 100644 --- a/src/XawIm.c +++ b/src/XawIm.c @@ -472,14 +472,14 @@ OpenIM(XawVendorShellExtPart *ve) for(ns=s=ve->im.input_method; ns && *s;) { /* skip any leading blanks */ - while (*s && isspace(*s)) s++; + while (*s && isspace((unsigned char)*s)) s++; if (!*s) break; if ((ns = end = strchr(s, ',')) == NULL) end = s + strlen(s); /* If there is a spurious comma end can be the same as s */ if (end > s) { /* strip any trailing blanks */ - while (isspace(*(end - 1))) end--; + while (isspace((unsigned char)*(end - 1))) end--; strcpy (pbuf, "@im="); strncat (pbuf, s, (size_t)(end - s)); @@ -514,14 +514,14 @@ OpenIM(XawVendorShellExtPart *ve) } found = False; for(ns = s = ve->im.preedit_type; s && !found;) { - while (*s && isspace(*s)) s++; + while (*s && isspace((unsigned char)*s)) s++; if (!*s) break; if ((ns = end = strchr(s, ',')) == NULL) end = s + strlen(s); else ns++; if (end > s) - while (isspace(*(end - 1))) end--; + while (isspace((unsigned char)*(end - 1))) end--; if (!strncmp(s, "OverTheSpot", (size_t)(end - s))) { input_style = (XIMPreeditPosition | XIMStatusArea); |