summaryrefslogtreecommitdiff
path: root/src/xkbtext.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xkbtext.c')
-rw-r--r--src/xkbtext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xkbtext.c b/src/xkbtext.c
index 6741d1a..91c3c33 100644
--- a/src/xkbtext.c
+++ b/src/xkbtext.c
@@ -733,7 +733,7 @@ XkbStringText(char *str, unsigned format)
}
else {
*out++ = '0';
- sprintf(out, "%o", *in);
+ sprintf(out, "%o", (unsigned char)*in);
while (*out != '\0')
out++;
}