Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/10
16 lines
371 B
Diff
16 lines
371 B
Diff
This will open all files in binary mode.
|
|
files may contain binary data.
|
|
This fixes e.g. autoconf, of whose frozen file, contains all characters from 0x00 to 0xff.
|
|
|
|
--- src/path.c
|
|
+++ src/path.c
|
|
@@ -110,7 +110,7 @@
|
|
static FILE *
|
|
m4_fopen (const char *file)
|
|
{
|
|
- FILE *fp = fopen (file, "r");
|
|
+ FILE *fp = fopen (file, "rb");
|
|
if (fp)
|
|
{
|
|
struct stat st;
|