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:
committed by
Carlos R. Mafra
parent
b796928504
commit
5d8dfa4764
@@ -998,7 +998,7 @@ static WMenu *readMenuPipe(WScreen * scr, char **file_name)
|
|||||||
}
|
}
|
||||||
filename = flat_file + (flat_file[1] == '|' ? 2 : 1);
|
filename = flat_file + (flat_file[1] == '|' ? 2 : 1);
|
||||||
|
|
||||||
file = popen(filename, "rb");
|
file = popen(filename, "r");
|
||||||
if (!file) {
|
if (!file) {
|
||||||
werror(_("%s:could not open menu file"), filename);
|
werror(_("%s:could not open menu file"), filename);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user