diff options
author | Benno Schulenberg <bensberg@telfort.nl> | 2022-06-05 09:15:05 +0200 |
---|---|---|
committer | Benno Schulenberg <bensberg@telfort.nl> | 2022-06-05 09:44:46 +0200 |
commit | e51e5c704c5bd7a91233b37f0cf4beaef6f06a5d (patch) | |
tree | f062bf86ac09cb212bbc6fb8d16b80dc5dfb9e3d | |
parent | 8e45c7f55dcb35ae710a223a28fb6d6443c711c6 (diff) |
fix an off-by-one error in copying the name of a virtual modifier
This fixes issue #9.
Bug existed since commit 816a8db326 from sixteen years ago.
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
-rw-r--r-- | src/xkbtext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xkbtext.c b/src/xkbtext.c index 91c3c33..fe30d2b 100644 --- a/src/xkbtext.c +++ b/src/xkbtext.c @@ -126,7 +126,7 @@ XkbVModIndexText(Display *dpy, XkbDescPtr xkb, unsigned ndx, unsigned format) len = strlen(tmp) + 1; if (format == XkbCFile) - len += 4; + len += 5; if (len >= BUFFER_SIZE) len = BUFFER_SIZE - 1; rtrn = tbGetBuffer(len); |