Commit 2dde01cc authored by Magnus Hagander's avatar Magnus Hagander

Use ssize_t where signed results can happen

Noted by Alexander Korotkov
parent 30a6f98e
...@@ -432,7 +432,7 @@ tar_write_padding_data(TarMethodFile * f, size_t bytes) ...@@ -432,7 +432,7 @@ tar_write_padding_data(TarMethodFile * f, size_t bytes)
{ {
size_t bytestowrite = bytesleft > XLOG_BLCKSZ ? XLOG_BLCKSZ : bytesleft; size_t bytestowrite = bytesleft > XLOG_BLCKSZ ? XLOG_BLCKSZ : bytesleft;
size_t r = tar_write(f, zerobuf, bytestowrite); ssize_t r = tar_write(f, zerobuf, bytestowrite);
if (r < 0) if (r < 0)
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment