[hackers] [wmii] Fix message parsing bug.

From: Kris Maglione <jg_AT_suckless.org>
Date: Fri Jun 01 09:44:28 2007

changeset: 2154:28aa1ecf36f7
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Fri Jun 01 03:42:59 2007 -0400
summary: Fix message parsing bug.

diff -r b66dc149adfc -r 28aa1ecf36f7 cmd/wmii/message.c
--- a/cmd/wmii/message.c Fri Jun 01 03:10:42 2007 -0400
+++ b/cmd/wmii/message.c Fri Jun 01 03:42:59 2007 -0400
@@ -105,6 +105,8 @@ eatrunes(Message *m, int (*p)(Rune), int
                         break;
                 m->pos += n;
         }
+ if(m->pos > m->end)
+ m->pos = m->end;
 }
 
 char *
Received on Fri Jun 01 2007 - 09:44:28 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:12 UTC