mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 09:20:34 +02: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:
1 parent
b796928504
commit
5d8dfa4764
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user