mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
example/convert-to-nia: tweak write max len
This commit is contained in:
1 parent
47ed32b6ce
commit
f06858f395
1 file changed
+3
-3
@@ -266,10 +266,10 @@ ignore_return_value(int ignored) {}
|
||||
|
||||
ssize_t //
|
||||
write_to_stdout(const void* ptr, size_t len) {
|
||||
if (!g_flags.output_crc32_digest) {
|
||||
return write(STDOUT_FD, ptr, len);
|
||||
} else if (len > SSIZE_MAX) {
|
||||
if (len > SSIZE_MAX) {
|
||||
return -EFBIG;
|
||||
} else if (!g_flags.output_crc32_digest) {
|
||||
return write(STDOUT_FD, ptr, len);
|
||||
}
|
||||
wuffs_crc32__ieee_hasher__update(
|
||||
&g_digest_hasher, wuffs_base__make_slice_u8((uint8_t*)ptr, len));
|
||||
|
||||
Reference in new issue
Block a user