am 86e441fc: am 1ff61a9b: Merge "build: fs_config_generate must open file in binary mode"

* commit '86e441fc9c4191439b53b9917cf432ca2d16330a':
  build: fs_config_generate must open file in binary mode
This commit is contained in:
Mark Salyzyn
2015-04-16 17:31:36 +00:00
committed by Android Git Automerger

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);