From 68f637b6f94d25f45eee2e9320e0057a548b92e0 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 25 Jun 2020 00:01:36 +0200 Subject: doc/examples: Always open files as "binary", not "text". Fixes ticket #8638. --- doc/examples/hw_decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/examples/hw_decode.c') diff --git a/doc/examples/hw_decode.c b/doc/examples/hw_decode.c index f3286f472d..71be6e6709 100644 --- a/doc/examples/hw_decode.c +++ b/doc/examples/hw_decode.c @@ -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) { -- cgit v1.2.3