diff --git a/core/input/input.c b/core/input/input.c index 6419f28bc1..d96ac1908d 100644 --- a/core/input/input.c +++ b/core/input/input.c @@ -578,7 +578,7 @@ static char *get_key_combo_name(int *keys, int max) while (1) { ret = get_key_name(*keys, ret); if (--max && *++keys) - talloc_asprintf_append_buffer(ret, "-"); + ret = talloc_asprintf_append_buffer(ret, "-"); else break; }