summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-07-28 22:15:59 +0300
committerRan Benita <ran234@gmail.com>2012-08-07 11:09:42 +0300
commitb2c4331ac365bb7d92cecdb4d6e1f947d8d37d00 (patch)
treefd574c0811cedce97c3648f27da65fecefd09c1b /src/text.h
parentc548c815296465f3ce41d8171e9f9cc50607213f (diff)
downloadxorg-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.h')
-rw-r--r--src/text.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.h b/src/text.h
index ed677b9..54a7e68 100644
--- a/src/text.h
+++ b/src/text.h
@@ -55,7 +55,7 @@ const char *
KeysymText(xkb_keysym_t sym);
const char *
-KeyNameText(char *name);
+KeyNameText(const char name[XkbKeyNameLength]);
const char *
SIMatchText(unsigned type);