2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix sendfile() arguments.

This commit is contained in:
John Preston
2021-05-03 12:43:23 +04:00
parent 298215542e
commit 434a4af9ef
2 changed files with 2 additions and 2 deletions

View File

@@ -1035,8 +1035,8 @@ bool linuxMoveFile(const char *from, const char *to) {
ssize_t copied = -1;
#ifdef Q_OS_LINUX
copied = sendfile(
fileno(ffrom),
fileno(fto),
fileno(ffrom),
nullptr,
fst.st_size);
#endif // Q_OS_LINUX