slackbuilds_ponce/desktop/j4-dmenu-desktop/fix_segfault.diff

12 lines
478 B
Diff
Raw Normal View History

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++;