Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#8639 closed defect (duplicate)

the mode of fopen in example 'hw_decode' was wrong when used in windows

Reported by: elite_jwp Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

In the example 'hw_decode.c:225', the code is as below:

 /* open the file to dump raw data */
 output_file = fopen(argv[3], "w+");

Here, the output file wasn't opened with mode "w+b" which would cause the data not be written "as is" in windows.

Change History (2)

comment:1 by mkver, 4 years ago

Keywords: hw_decode fopen removed
Resolution: duplicate
Status: newclosed

Duplicate of #8638.

comment:2 by Carl Eugen Hoyos, 4 years ago

Component: documentationundetermined
Priority: minornormal
Version: 4.2unspecified
Note: See TracTickets for help on using tickets.