[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kpmcore] src/plugins/libparted: Unbreak build fix.
From: Teo Mrnjavac <teo () kde ! org>
Date: 2016-05-16 13:57:36
Message-ID: E1b2J1c-0006HK-31 () scm ! kde ! org
[Download RAW message or body]
Git commit 677bae18e5789a99cd8e631b5ef99b9c598276fa by Teo Mrnjavac.
Committed on 16/05/2016 at 13:57.
Pushed by mrnjavac into branch 'master'.
Unbreak build fix.
M +3 -2 src/plugins/libparted/libpartedpartitiontable.cpp
http://commits.kde.org/kpmcore/677bae18e5789a99cd8e631b5ef99b9c598276fa
diff --git a/src/plugins/libparted/libpartedpartitiontable.cpp \
b/src/plugins/libparted/libpartedpartitiontable.cpp index 33e4792..62d5cbc 100644
--- a/src/plugins/libparted/libpartedpartitiontable.cpp
+++ b/src/plugins/libparted/libpartedpartitiontable.cpp
@@ -243,8 +243,9 @@ bool LibPartedPartitionTable::clobberFileSystem(Report& report, \
const Partition&
//reiser4 stores "ReIsEr4" at sector 128 with a sector size of 512 \
bytes
// We need to use memset instead of = {0} because clang sucks.
- char zeroes[pedDevice()->sector_size*129];
- memset(zeroes, 0, pedDevice()->sector_size*129*sizeof(long long));
+ const long long zeroes_length = pedDevice()->sector_size*129;
+ char zeroes[zeroes_length];
+ memset(zeroes, 0, zeroes_length*sizeof(char));
rval = ped_geometry_write(&pedPartition->geom, zeroes, 0, 129);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic