mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 14:08:06 +01:00
patch to add binary mode on opening files (for Windows+Cygwin compatibility).
This commit is contained in:
@@ -296,7 +296,7 @@ Bool copyAllFiles(char *gsdir)
|
||||
|
||||
sprintf(path, "%s/USER_FILES", DATADIR);
|
||||
|
||||
f = fopen(path, "r");
|
||||
f = fopen(path, "rb");
|
||||
while (!feof(f)) {
|
||||
if (!fgets(file, 255, f)) {
|
||||
break;
|
||||
@@ -319,7 +319,7 @@ Bool copyAllFiles(char *gsdir)
|
||||
|
||||
sprintf(path, "%s/USER_FILES", ETCDIR);
|
||||
|
||||
f = fopen(path, "r");
|
||||
f = fopen(path, "rb");
|
||||
while (!feof(f)) {
|
||||
if (!fgets(path, 255, f)) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user