mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
ImgIoUtilWriteFile(): use ImgIoUtilSetBinaryMode
this matches what's done in cwebp.c:977 Change-Id: I0a05d03c97a073b8aa1e01430f20d6cc3c5ffc91
This commit is contained in:
parent
7d985bd1d0
commit
699b04161a
@ -112,7 +112,7 @@ int ImgIoUtilWriteFile(const char* const file_name,
|
||||
if (data == NULL) {
|
||||
return 0;
|
||||
}
|
||||
out = to_stdout ? stdout : fopen(file_name, "wb");
|
||||
out = to_stdout ? ImgIoUtilSetBinaryMode(stdout) : fopen(file_name, "wb");
|
||||
if (out == NULL) {
|
||||
fprintf(stderr, "Error! Cannot open output file '%s'\n", file_name);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user