Merge "build: fs_config_generate must open file in binary mode"

This commit is contained in:
Mark Salyzyn
2015-04-16 17:05:08 +00:00
committed by Gerrit Code Review

View File

@@ -82,7 +82,7 @@ int main(int argc, char** argv) {
usage(); usage();
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
fp = fopen(optarg, "w"); fp = fopen(optarg, "wb");
if (fp == NULL) { if (fp == NULL) {
fprintf(stderr, "Can not open \"%s\"\n", optarg); fprintf(stderr, "Can not open \"%s\"\n", optarg);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);