doc/examples: Always open files as "binary", not "text".

Fixes ticket #8638.
This commit is contained in:
Carl Eugen Hoyos
2020-06-25 00:01:36 +02:00
parent c8ba0daf8d
commit 68f637b6f9
2 changed files with 2 additions and 2 deletions

View File

@@ -223,7 +223,7 @@ int main(int argc, char *argv[])
}
/* open the file to dump raw data */
output_file = fopen(argv[3], "w+");
output_file = fopen(argv[3], "w+b");
/* actual decoding and dump the raw data */
while (ret >= 0) {