slackbuilds_ponce/desktop/j4-dmenu-desktop/fix_segfault.diff
B. Watson 86c1caa914 desktop/j4-dmenu-desktop: Added (dmenu menu generator)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2013-07-07 09:11:51 -03:00

11 lines
478 B
Diff

diff -Naur j4-dmenu-desktop-master/src/desktop.cc j4-dmenu-desktop-master.patched/src/desktop.cc
--- j4-dmenu-desktop-master/src/desktop.cc 2013-05-19 11:46:03.000000000 -0400
+++ j4-dmenu-desktop-master.patched/src/desktop.cc 2013-06-28 05:39:19.000000000 -0400
@@ -59,6 +59,7 @@
char *key=line, *value;
// Split that string in place
value = strchr(line, '=');
+ if(!value) continue;
value[0] = 0;
value++;