diff options
author | wm4 <wm4@nowhere> | 2013-03-19 13:02:42 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-03-19 13:10:19 +0100 |
commit | ef7975e91b561f77cfa72c4aec9cd694e32f944d (patch) | |
tree | 077b7552c4c5abf05c6d0f172c06ffac03da939a /core | |
parent | 9a731a9b0df80590a7808b8d0628b84d06c66005 (diff) | |
download | mpv-ef7975e91b561f77cfa72c4aec9cd694e32f944d.tar.bz2 mpv-ef7975e91b561f77cfa72c4aec9cd694e32f944d.tar.xz |
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).
Diffstat (limited to 'core')
-rw-r--r-- | core/input/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |