diff options
author | Daniel Stone <daniel@fooishbar.org> | 2010-07-09 19:34:29 +0100 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2010-07-09 19:34:29 +0100 |
commit | a281386fa887e6bf4110840779aed46dd0ac89b6 (patch) | |
tree | 1a2ff173806fc86f0bc91a79475db064f1fdacb2 /xkbparse.y | |
parent | 0b04ecbb7a6afb223c91d3b15baab0bc48542281 (diff) |
Fix parsing of 0x1a2b3c4d-style symbols
Raw keysyms were not getting parsed correctly, due to forgetting to add
the code to libX11, forgetting to add the backwards-compat code for old
libX11s, and then stuffing the lexing up anyway. Yeesh.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'xkbparse.y')
-rw-r--r-- | xkbparse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -726,7 +726,7 @@ KeySym : IDENT { $$= strdup(scanBuf); } | Integer { if ($1<10) { $$= malloc(2); $$[0]= '0' + $1; $$[1]= '\0'; } - else { $$= malloc(17); snprintf($$, 17, "%x", $1); } + else { $$= malloc(19); snprintf($$, 19, "0x%x", $1); } } ; |