summaryrefslogtreecommitdiff
path: root/xkbparse.y
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2010-07-09 19:34:29 +0100
committerDaniel Stone <daniel@fooishbar.org>2010-07-09 19:34:29 +0100
commita281386fa887e6bf4110840779aed46dd0ac89b6 (patch)
tree1a2ff173806fc86f0bc91a79475db064f1fdacb2 /xkbparse.y
parent0b04ecbb7a6afb223c91d3b15baab0bc48542281 (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.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkbparse.y b/xkbparse.y
index 862acd8..d73b92a 100644
--- a/xkbparse.y
+++ b/xkbparse.y
@@ -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); }
}
;