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 authored and Carlos R. Mafra committed 2012-08-25 11:00:09 +01:00
1 parent b796928504
commit 5d8dfa4764
1 file changed
+1 -1
+1 -1
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;