mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-03 04:14:20 +01:00
patch to add binary mode on opening files (for Windows+Cygwin compatibility).
This commit is contained in:
@@ -127,7 +127,7 @@ RLoadPPM(RContext *context, char *file_name, int index)
|
||||
|
||||
#define GETL() if (!fgets(buffer, 255, file)) goto short_file
|
||||
|
||||
file = fopen(file_name, "r");
|
||||
file = fopen(file_name, "rb");
|
||||
if (!file) {
|
||||
RErrorCode = RERR_OPEN;
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user