aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 4485080db21..739dfd8f2de 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -2274,10 +2274,11 @@ around function keys and event symbols. */)
2274 2274
2275 if (INTEGERP (key)) /* Normal character */ 2275 if (INTEGERP (key)) /* Normal character */
2276 { 2276 {
2277 char tem[KEY_DESCRIPTION_SIZE]; 2277 char tem[KEY_DESCRIPTION_SIZE], *p;
2278 2278
2279 *push_key_description (XINT (key), tem, 1) = 0; 2279 p = push_key_description (XINT (key), tem, 1);
2280 return build_string (tem); 2280 *p = 0;
2281 return make_specified_string (tem, -1, p - tem, 1);
2281 } 2282 }
2282 else if (SYMBOLP (key)) /* Function key or event-symbol */ 2283 else if (SYMBOLP (key)) /* Function key or event-symbol */
2283 { 2284 {