void-packages/srcpkgs/actiona/patches/bytearray-constdata.patch

21 lines
868 B
Diff

--- actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp 2018-07-17 20:29:12.000000000 +0200
+++ actions/actionpacksystem/systeminfo/linux/qstorageinfo_linux.cpp 2018-07-28 13:26:14.340872982 +0200
@@ -98,7 +98,7 @@
}
#else
struct statfs statistics;
- if (statfs(drive.toLatin1(), &statistics) == 0) {
+ if (statfs(drive.toLatin1().constData(), &statistics) == 0) {
qlonglong blockSize = statistics.f_bsize;
qlonglong availBlocks = statistics.f_bavail;
return availBlocks * blockSize;
@@ -118,7 +118,7 @@
}
#else
struct statfs statistics;
- if (statfs(drive.toLatin1(), &statistics) == 0) {
+ if (statfs(drive.toLatin1().constData(), &statistics) == 0) {
qlonglong blockSize = statistics.f_bsize;
qlonglong totalBlocks = statistics.f_blocks;
return totalBlocks * blockSize;