2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-01 06:45:10 +00:00

Add some casts to quiet -Wconversion

This commit is contained in:
Todd C. Miller
2024-11-17 13:01:10 -07:00
parent 9613ef9445
commit 3d85f2e98f
3 changed files with 3 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ sudo_printf_int(int msg_type, const char * restrict fmt, ...)
va_end(ap);
}
if (len != -1) {
if (fwrite(buf, 1, len, ttyfp ? ttyfp : fp) == 0)
if (fwrite(buf, 1, (size_t)len, ttyfp ? ttyfp : fp) == 0)
len = -1;
if (buf != sbuf)
free(buf);