mirror of
https://github.com/webmproject/libwebp.git
synced 2025-04-12 11:56:47 +02:00
Merge "ImgIoUtilWriteFile(): use ImgIoUtilSetBinaryMode"
This commit is contained in:
commit
4956618276
@ -112,7 +112,7 @@ int ImgIoUtilWriteFile(const char* const file_name,
|
|||||||
if (data == NULL) {
|
if (data == NULL) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
out = to_stdout ? stdout : fopen(file_name, "wb");
|
out = to_stdout ? ImgIoUtilSetBinaryMode(stdout) : fopen(file_name, "wb");
|
||||||
if (out == NULL) {
|
if (out == NULL) {
|
||||||
fprintf(stderr, "Error! Cannot open output file '%s'\n", file_name);
|
fprintf(stderr, "Error! Cannot open output file '%s'\n", file_name);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user