--- ghex-3.18.4.orig/src/hex-document.c 2019-07-13 12:32:37.104694200 -0400 | |
+++ ghex-3.18.4/src/hex-document.c 2019-07-13 12:36:29.883514700 -0400 | |
@@ -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; |