diff options
author | Ran Benita <ran234@gmail.com> | 2012-07-28 22:15:59 +0300 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2012-08-07 11:09:42 +0300 |
commit | b2c4331ac365bb7d92cecdb4d6e1f947d8d37d00 (patch) | |
tree | fd574c0811cedce97c3648f27da65fecefd09c1b /src/text.c | |
parent | c548c815296465f3ce41d8171e9f9cc50607213f (diff) | |
download | xorg-lib-libxkbcommon-b2c4331ac365bb7d92cecdb4d6e1f947d8d37d00.tar.gz |
Handle key names consistently
We treat the key names as fixed length, non NUL terminated strings of
length XkbKeyNameLength, and use the appropriate *Text functions to
print them. We also use strncpy everywhere instead of memcpy to copy
the names, because it does some NUL padding and we might as well.
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/text.c')
-rw-r--r-- | src/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -276,7 +276,7 @@ KeysymText(xkb_keysym_t sym) } const char * -KeyNameText(char *name) +KeyNameText(const char name[XkbKeyNameLength]) { char *buf; int len; |