Commit 3094c4c6 authored by Committed by Adam Jackson
xkb: Escape non-printable characters correctly.
XkbStringText escapes non-printable characters using octal numbers. Such escape sequence would be at most 5 characters long ("\0123"), so it reserves 5 bytes in the buffer. Due to char->unsigned int conversion, it would print much longer string for negative numbers. Reviewed-by: Keith Packard <firstname.lastname@example.org> Signed-off-by: Julien Cristau <email@example.com> (cherry picked from commit eaf1f72e)
Showing with 1 addition and 1 deletion