summaryrefslogtreecommitdiff
path: root/Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Utils.cpp')
-rw-r--r--Utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utils.cpp b/Utils.cpp
index 279c990..d4618af 100644
--- a/Utils.cpp
+++ b/Utils.cpp
@@ -526,7 +526,7 @@ status_t WipeBlockDevice(const std::string& path) {
goto done;
}
- if ((ioctl(fd, BLKGETSIZE, nr_sec)) == -1) {
+ if ((ioctl(fd, BLKGETSIZE, &nr_sec)) == -1) {
PLOG(ERROR) << "Failed to determine size of " << path;
goto done;
}