summaryrefslogtreecommitdiff
path: root/xkbparse.y
diff options
context:
space:
mode:
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); }
}
;