diff --git a/src/xkbcomp/xkbparse.y b/src/xkbcomp/xkbparse.y index 5a6e45f..d08408a 100644 --- a/src/xkbcomp/xkbparse.y +++ b/src/xkbcomp/xkbparse.y @@ -731,7 +731,7 @@ KeySym : IDENT { $$= strdup(scanBuf); } } else { $$= malloc(17); - snprintf($$, 17, "%x", $1); + snprintf($$, 17, "0x%x", $1); } } ;