summaryrefslogtreecommitdiff
path: root/src/compositor-x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compositor-x11.c')
-rw-r--r--src/compositor-x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor-x11.c b/src/compositor-x11.c
index dca2324..0777d77 100644
--- a/src/compositor-x11.c
+++ b/src/compositor-x11.c
@@ -737,7 +737,7 @@ x11_compositor_get_keymap(struct x11_compositor *c)
length_part = strlen(value_part); \
if (value_part + length_part > (value_all + length_all) && \
length_part > 0 && c->base.xkb_info.names.to == NULL) { \
- free(c->base.xkb_info.names.to); \
+ free((char *) c->base.xkb_info.names.to); \
c->base.xkb_info.names.to = strdup(value_part); \
} \
value_part += length_part + 1;