master
leitner 9 months ago
parent cf6441b0c4
commit e19831955e

@ -19,7 +19,7 @@ int64 io_sendfile(int64 s,int64 fd,uint64 off,uint64 n) {
io_eagain_write(s); io_eagain_write(s);
return (errno==EAGAIN?(sbytes?sbytes:-1):-3); return (errno==EAGAIN?(sbytes?sbytes:-1):-3);
} }
if (sbytes<ct) if ((uint64)sbytes<(uint64)ct)
io_eagain_write(s); io_eagain_write(s);
return n; return n;
} }

Loading…
Cancel
Save