mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-20 14:04:16 +01:00
patch to add binary mode on opening files (for Windows+Cygwin compatibility).
This commit is contained in:
@@ -1739,7 +1739,7 @@ connectKFM(WScreen *scr)
|
||||
wfree(buffer);
|
||||
|
||||
/* pid file */
|
||||
f = fopen(path, "r");
|
||||
f = fopen(path, "rb");
|
||||
wfree(path);
|
||||
if (!f)
|
||||
return -1;
|
||||
@@ -1771,7 +1771,7 @@ connectKFM(WScreen *scr)
|
||||
}
|
||||
|
||||
path = wstrconcat(wgethomedir(), "/.kde/share/apps/kfm/magic");
|
||||
f = fopen(path, "r");
|
||||
f = fopen(path, "rb");
|
||||
wfree(path);
|
||||
if (!f) {
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user