1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

wmmenugen: Fix segfault; argv[argc] doesn't exist.

This commit is contained in:
Doug Torrance
2016-04-24 18:40:45 -04:00
committed by Carlos R. Mafra
parent 5a730d63b2
commit 2ea6162629

View File

@@ -106,7 +106,7 @@ int main(int argc, char **argv)
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] == '=' ||