12 lines
391 B
Diff
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;
|