use sendfile64

This commit is contained in:
Lion Kortlepel 2024-07-14 16:17:39 +02:00
parent 5baeaa72c2
commit b097acfd4a
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -831,7 +831,7 @@ void TNetwork::SplitLoad(TClient& c, size_t Offset, size_t End, bool D, const st
auto SysOffset = off_t(Offset);
ssize_t ret = sendfile(socket, fd, &SysOffset, End - Offset);
ssize_t ret = sendfile64(socket, fd, &SysOffset, End - Offset);
if (ret < 0) {
beammp_errorf("Failed to send mod '{}' to client {}: {}", Name, c.GetID(), std::strerror(errno));
return;