Skip to content
Commit 3094c4c6 authored by Michal Srb's avatar Michal Srb Committed by Adam Jackson
Browse files

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: default avatarKeith Packard <keithp@keithp.com>
Signed-off-by: default avatarJulien Cristau <jcristau@debian.org>
(cherry picked from commit eaf1f72e)
parent a510fb81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment