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:
wm4 2013-03-19 13:02:42 +01:00
parent 9a731a9b0d
commit ef7975e91b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}