diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/parse.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parse.c b/src/parse.c index cc5250c..e399ca6 100644 --- a/src/parse.c +++ b/src/parse.c @@ -73,8 +73,9 @@ parse_key(struct parser *parser) { uint32_t keycode; struct token key = parser_previous(parser); - keycode = keycode_from_char(*key.text); - printf("\tkey: '%c' (0x%02x)\n", *key.text, keycode); + char c = *key.text; + keycode = keycode_from_char(c); + printf("\tkey: '%c' (0x%02x)\n", c, keycode); return keycode; } |