Files
MINGW-packages/mingw-w64-ghex/002-fread.patch
2015-02-15 11:18:03 +01:00

12 lines
375 B
Diff

--- ./src/hex-document.c.orig 2014-04-14 22:42:15.000000000 +0200
+++ ./src/hex-document.c 2015-02-15 10:48:42.205722500 +0100
@@ -652,7 +652,7 @@
if(!get_document_attributes(doc))
return FALSE;
- if((file = fopen(doc->file_name, "r")) == NULL)
+ if((file = fopen(doc->file_name, "rb")) == NULL)
return FALSE;
doc->gap_size = doc->buffer_size - doc->file_size;