Explorar el Código

avoid Windows perform newline translation (#4128)

TianlongLiang hace 11 meses
padre
commit
48a87dc8bf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      test-tools/binarydump-tool/binarydump.c

+ 1 - 1
test-tools/binarydump-tool/binarydump.c

@@ -15,7 +15,7 @@ read_file_to_buffer(const char *filename, int *ret_size)
     FILE *file;
     FILE *file;
     int file_size, read_size;
     int file_size, read_size;
 
 
-    if (!(file = fopen(filename, "r")))
+    if (!(file = fopen(filename, "rb")))
         return NULL;
         return NULL;
 
 
     fseek(file, 0, SEEK_END);
     fseek(file, 0, SEEK_END);