Files
MINGW-packages/mingw-w64-ghex/002-fread.patch
Christoph Reiter 7e8fecf689 ghex: Update to 42.3
2023-03-24 18:45:09 +01:00

12 lines
391 B
Diff

--- ghex-42.3/src/hex-buffer-malloc.c.orig 2023-03-24 18:39:24.678199800 +0100
+++ ghex-42.3/src/hex-buffer-malloc.c 2023-03-24 18:39:32.055352700 +0100
@@ -322,7 +322,7 @@
if (! update_payload_size_from_file (self))
goto out;
- if ((file = fopen(path, "r")) == NULL)
+ if ((file = fopen(path, "rb")) == NULL)
goto out;
self->buffer_size = self->payload_size + self->gap_size;