summaryrefslogtreecommitdiffstats
path: root/Query.c
diff options
context:
space:
mode:
Diffstat (limited to 'Query.c')
-rw-r--r--Query.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Query.c b/Query.c
index c65d83a..ea5bca6 100644
--- a/Query.c
+++ b/Query.c
@@ -71,9 +71,10 @@ int Query(char *dev)
;
else
#endif
- if (ioctl(fd, BLKGETSIZE, &array_size)==0)
- larray_size = array_size<<9;
- else larray_size = 0;
+ if (ioctl(fd, BLKGETSIZE, &array_size)==0) {
+ larray_size = array_size;
+ larray_size <<= 9;
+ } else larray_size = 0;
}
close(fd);