arm_boot_tools: Add 'b' to fopen flags for Windows compatibility

Hardware / Coreboot - Scott Duplichan [notabs.org] - 19 December 2014 11:55 UTC

Windows requires the 'b' (binary) flag when using fopen to open a binary file. Otherwise \n characters get expanded to \r\n and z is treated as end of file.

Change-Id: I3b85e4f9a8f7749801a39154881fe2eedd33f9b8

e1a4dc8 arm_boot_tools: Add 'b' to fopen flags for Windows compatibility
util/arm_boot_tools/mksunxiboot/mksunxiboot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: review.coreboot.org


  • Share