Package: wmaker / 0.95.7-8

61_fix_wmmenugen_segfault.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description:  Fix segfault in wmmenugen
Origin: http://repo.or.cz/wmaker-crm.git/commitdiff/2ea6162
Applied-Upstream: http://repo.or.cz/wmaker-crm.git/commitdiff/2ea6162
Bug-Debian: https://bugs.debian.org/844783
Last-Update: 2016-11-19

---
 util/wmmenugen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/util/wmmenugen.c
+++ b/util/wmmenugen.c
@@ -106,7 +106,7 @@
 	parse_locale(NULL, &env_lang, &env_ctry, &env_enc, &env_mod);
 	terminal = find_terminal_emulator();
 
-	for (i = 1; i <= argc; i++)
+	for (i = 1; i < argc; i++)
 	{
 		if (strncmp(argv[i], "-parser", 7) == 0 &&
 		    (argv[i][7] == '=' ||