[hackers] [dmenu] bugfix || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Wed, 18 May 2011 18:02:44 +0200 (CEST)

changeset: 412:34a2d77049a9
tag: 4.3.1
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Wed May 18 17:01:44 2011 +0100
files: config.mk dmenu.c
description:
bugfix

diff -r c99460447378 -r 34a2d77049a9 config.mk
--- a/config.mk Wed May 18 16:21:45 2011 +0100
+++ b/config.mk Wed May 18 17:01:44 2011 +0100
@@ -1,5 +1,5 @@
 # dmenu version
-VERSION = 4.3
+VERSION = 4.3.1
 
 # paths
 PREFIX = /usr/local
diff -r c99460447378 -r 34a2d77049a9 dmenu.c
--- a/dmenu.c Wed May 18 16:21:45 2011 +0100
+++ b/dmenu.c Wed May 18 17:01:44 2011 +0100
@@ -219,7 +219,7 @@
         if(n > 0)
                 memcpy(&text[cursor], str, n);
         cursor += n;
- match(n > 0);
+ match(n > 0 && text[cursor] == '\0');
 }
 
 void
Received on Wed May 18 2011 - 18:02:44 CEST

This archive was generated by hypermail 2.2.0 : Wed May 18 2011 - 18:12:05 CEST