diff options
author | Ran Benita <ran234@gmail.com> | 2013-03-01 18:33:40 +0200 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2013-03-18 22:20:04 +0000 |
commit | 4e8dcca86dfbd27f6a0e2247813d53069c438295 (patch) | |
tree | 29e90d0e50c7b2320b0355ca881096e6794d60ce /src/text.h | |
parent | 540feef3bbfe8fc74caea306eed3af90ca9517ea (diff) | |
download | xorg-lib-libxkbcommon-4e8dcca86dfbd27f6a0e2247813d53069c438295.tar.gz |
text: clean up and fix the *MaskText functions
The snprintf trick that LedStateText and ControlMaskText do cannot work,
because you can't use the buffer as an argument to write to itself!
(posix at least has 'restrict' there). So those two actually never
worked for more than one value (i.e. with a +).
Fix that, and do the same cleanup to ModMaskText. Now we have 3
functions which look exactly the same, oh well.
Also increase the context text buffer size, you never know.
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/text.h')
-rw-r--r-- | src/text.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -70,7 +70,7 @@ const char * SIMatchText(enum xkb_match_operation type); const char * -LedStateText(struct xkb_context *ctx, enum xkb_state_component mask); +LedStateMaskText(struct xkb_context *ctx, enum xkb_state_component mask); const char * ControlMaskText(struct xkb_context *ctx, enum xkb_action_controls mask); |