--- a/actions/system/src/systeminfo/linux/qstorageinfo_linux.cpp
+++ b/actions/system/src/systeminfo/linux/qstorageinfo_linux.cpp
@@ -98,7 +98,7 @@ qlonglong QStorageInfo_CustomPrivate::av
     }
 #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 @@ qlonglong QStorageInfo_CustomPrivate::to
     }
 #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;
