1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

Fixed invalid argument to popen in readMenuPipe().

We were passing "rb" to popen(), which was failing with EINVAL with the
result that generated menus were not displayed.
This commit is contained in:
Iain Patterson
2012-08-25 10:28:04 +01:00
committed by Carlos R. Mafra
parent b796928504
commit 5d8dfa4764

View File

@@ -998,7 +998,7 @@ static WMenu *readMenuPipe(WScreen * scr, char **file_name)
}
filename = flat_file + (flat_file[1] == '|' ? 2 : 1);
file = popen(filename, "rb");
file = popen(filename, "r");
if (!file) {
werror(_("%s:could not open menu file"), filename);
return NULL;