From 6024069f378dd95667c078d8360ed515116dd309 Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Thu, 16 Apr 2015 08:42:19 -0700 Subject: build: fs_config_generate must open file in binary mode Bug: 19908228 Change-Id: I2361b8af90b3729deb438e6a7a7179de12680b65 --- tools/fs_config/fs_config_generate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/fs_config/fs_config_generate.c b/tools/fs_config/fs_config_generate.c index 87769c7..c06213f 100644 --- a/tools/fs_config/fs_config_generate.c +++ b/tools/fs_config/fs_config_generate.c @@ -82,7 +82,7 @@ int main(int argc, char** argv) { usage(); exit(EXIT_FAILURE); } - fp = fopen(optarg, "w"); + fp = fopen(optarg, "wb"); if (fp == NULL) { fprintf(stderr, "Can not open \"%s\"\n", optarg); exit(EXIT_FAILURE); -- cgit v1.1