diff options
author | Ran Benita <ran234@gmail.com> | 2012-10-18 22:55:17 +0200 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2012-10-18 22:55:17 +0200 |
commit | e6946ae2c59a878e838fe777b50dad695b63e6bb (patch) | |
tree | ba44a8001fa341bdb097db03d292db9f309836d1 /src/text.c | |
parent | 714e95e1445ab0d37b3970bebdd9af09d7eaf923 (diff) | |
download | libxkbcommon-e6946ae2c59a878e838fe777b50dad695b63e6bb.tar.gz libxkbcommon-e6946ae2c59a878e838fe777b50dad695b63e6bb.tar.bz2 libxkbcommon-e6946ae2c59a878e838fe777b50dad695b63e6bb.zip |
Remove a couple more uses of static char buffers
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/text.c')
-rw-r--r-- | src/text.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -288,10 +288,8 @@ ActionTypeText(unsigned type) const char * KeysymText(struct xkb_context *ctx, xkb_keysym_t sym) { - static char buffer[64]; - - xkb_keysym_get_name(sym, buffer, sizeof buffer); - + char *buffer = xkb_context_get_buffer(ctx, 64); + xkb_keysym_get_name(sym, buffer, 64); return buffer; } |