diff --git a/Telegram/SourceFiles/_other/updater_linux.cpp b/Telegram/SourceFiles/_other/updater_linux.cpp index 1a634adeb5..ce4da02be4 100644 --- a/Telegram/SourceFiles/_other/updater_linux.cpp +++ b/Telegram/SourceFiles/_other/updater_linux.cpp @@ -108,8 +108,8 @@ bool copyFile(const char *from, const char *to) { } ssize_t copied = sendfile( - fileno(ffrom), fileno(fto), + fileno(ffrom), nullptr, fst.st_size); diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index 3baf7c1dcb..ea14312b96 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -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