mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 07:56:03 +00:00
Fix sendfile() arguments.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user