summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
Diffstat (limited to 'input')
-rw-r--r--input/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input/input.c b/input/input.c
index 9a74abcdfb..808b197603 100644
--- a/input/input.c
+++ b/input/input.c
@@ -1471,7 +1471,7 @@ int mp_input_get_key_from_name(const char *name)
const char *p;
while (p = strchr(name, '+')) {
for (struct mp_key_name *m = modifier_names; m->name; m++)
- if (!bstrcasecmp(BSTR(m->name), (struct bstr){name, p - name})) {
+ if (!bstrcasecmp(BSTR(m->name), (struct bstr){(char *)name, p - name})) {
modifiers |= m->key;
goto found;
}