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 dec53cbd8e1..218a2f1828f 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -2529,10 +2529,11 @@ around function keys and event symbols. */)
2529 2529
2530 if (INTEGERP (key)) /* Normal character */ 2530 if (INTEGERP (key)) /* Normal character */
2531 { 2531 {
2532 char tem[KEY_DESCRIPTION_SIZE]; 2532 char tem[KEY_DESCRIPTION_SIZE], *p;
2533 2533
2534 *push_key_description (XUINT (key), tem, 1) = 0; 2534 p = push_key_description (XUINT (key), tem, 1);
2535 return build_string (tem); 2535 *p = 0;
2536 return make_specified_string (tem, -1, p - tem, 1);
2536 } 2537 }
2537 else if (SYMBOLP (key)) /* Function key or event-symbol */ 2538 else if (SYMBOLP (key)) /* Function key or event-symbol */
2538 { 2539 {