diff --git a/cmd/wmii/message.c b/cmd/wmii/message.c index 2b24b63a..7d8e7ab2 100644 --- a/cmd/wmii/message.c +++ b/cmd/wmii/message.c @@ -105,6 +105,8 @@ eatrunes(Message *m, int (*p)(Rune), int val) { break; m->pos += n; } + if(m->pos > m->end) + m->pos = m->end; } char *