summaryrefslogtreecommitdiffstats
path: root/x11vnc/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/util.c')
-rw-r--r--x11vnc/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/x11vnc/util.c b/x11vnc/util.c
index 64220d0..aa0fb79 100644
--- a/x11vnc/util.c
+++ b/x11vnc/util.c
@@ -103,7 +103,7 @@ void lowercase(char *str) {
}
p = str;
while (*p != '\0') {
- *p = tolower(*p);
+ *p = tolower((unsigned char) (*p));
p++;
}
}
@@ -115,7 +115,7 @@ void uppercase(char *str) {
}
p = str;
while (*p != '\0') {
- *p = toupper(*p);
+ *p = toupper((unsigned char) (*p));
p++;
}
}
@@ -123,7 +123,7 @@ void uppercase(char *str) {
char *lblanks(char *str) {
char *p = str;
while (*p != '\0') {
- if (! isspace(*p)) {
+ if (! isspace((unsigned char) (*p))) {
break;
}
p++;