mirror of https://github.com/mpv-player/mpv
input: fix crash due to dangling pointer
Wrong API usage, has been in the code since 2011. Rarely triggered (if at all in the current setup).
This commit is contained in:
parent
9a731a9b0d
commit
ef7975e91b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue