From ef7975e91b561f77cfa72c4aec9cd694e32f944d Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 19 Mar 2013 13:02:42 +0100 Subject: 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). --- core/input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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; } -- cgit v1.2.3