Merge "build: fs_config_generate must open file in binary mode"
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user