[hackers] [dmenu] applied Alex Sedov's Tab buffer termination patch, thanks || Anselm R Garbe
commit ec64f273fb7660d3746eb765dc02e40726a54294
Author: Anselm R Garbe <anselm_AT_garbe.us>
Date: Wed Apr 17 20:59:12 2013 +0200
applied Alex Sedov's Tab buffer termination patch, thanks
diff --git a/dmenu.c b/dmenu.c
index efc1e54..c25dc82 100644
--- a/dmenu.c
+++ b/dmenu.c
_AT_@ -392,7 +392,8 @@ keypress(XKeyEvent *ev) {
case XK_Tab:
if(!sel)
return;
- strncpy(text, sel->text, sizeof text);
+ strncpy(text, sel->text, sizeof text - 1);
+ text[sizeof text - 1] = '
Received on Wed Apr 17 2013 - 20:59:00 CEST
This archive was generated by hypermail 2.3.0
: Wed Apr 17 2013 - 21:00:20 CEST