diff options
author | Rich Felker <dalias@aerifal.cx> | 2006-10-16 07:29:06 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2006-10-16 07:29:06 +0000 |
commit | d75f803371a79f31b5b9bb8f9d59dd4a65e4b89e (patch) | |
tree | 63604f59870528232aa44357b92807c57e90482f /xlib.c | |
parent | 08411a96ec1c25970b0d63db7b5d061329562fdf (diff) |
don't know if this is a bug somewhere else, but for whatever reason i
was getting non-null-terminated strings sometime?!
Diffstat (limited to 'xlib.c')
-rw-r--r-- | xlib.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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--; |