summaryrefslogtreecommitdiff
path: root/xlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlib.c')
-rw-r--r--xlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlib.c b/xlib.c
index 97f3058..1eff26d 100644
--- a/xlib.c
+++ b/xlib.c
@@ -260,6 +260,7 @@ void uudisp_next_event(struct uudisp *d, void *fds)
}
} else r = XLookupString((void *)&ev, tmp, sizeof(tmp), &ks, 0);
if (r>=sizeof(tmp)) continue;
+ tmp[r] = 0;
if ((ev.xkey.state & Mod1Mask) && l) {
*s++ = '\033';
l--;