mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix sendfile() arguments.
This commit is contained in:
parent
298215542e
commit
434a4af9ef
2 changed files with 2 additions and 2 deletions
|
@ -108,8 +108,8 @@ bool copyFile(const char *from, const char *to) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ssize_t copied = sendfile(
|
ssize_t copied = sendfile(
|
||||||
fileno(ffrom),
|
|
||||||
fileno(fto),
|
fileno(fto),
|
||||||
|
fileno(ffrom),
|
||||||
nullptr,
|
nullptr,
|
||||||
fst.st_size);
|
fst.st_size);
|
||||||
|
|
||||||
|
|
|
@ -1035,8 +1035,8 @@ bool linuxMoveFile(const char *from, const char *to) {
|
||||||
ssize_t copied = -1;
|
ssize_t copied = -1;
|
||||||
#ifdef Q_OS_LINUX
|
#ifdef Q_OS_LINUX
|
||||||
copied = sendfile(
|
copied = sendfile(
|
||||||
fileno(ffrom),
|
|
||||||
fileno(fto),
|
fileno(fto),
|
||||||
|
fileno(ffrom),
|
||||||
nullptr,
|
nullptr,
|
||||||
fst.st_size);
|
fst.st_size);
|
||||||
#endif // Q_OS_LINUX
|
#endif // Q_OS_LINUX
|
||||||
|
|
Loading…
Add table
Reference in a new issue