summaryrefslogtreecommitdiffstats
path: root/src/swap.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-11-03 15:24:33 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2013-11-03 15:24:33 +0100
commit191a261516d0f55336f37ced9fa3695d66d225d9 (patch)
tree1c74a906a1da183586adba291a2dd56cb9f3f16c /src/swap.c
parent2fd70a3b9ed309f1cf3f57d10faebf29bb451037 (diff)
fix minor code defects
Diffstat (limited to 'src/swap.c')
-rw-r--r--src/swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/swap.c b/src/swap.c
index 3205eec..5a5494b 100644
--- a/src/swap.c
+++ b/src/swap.c
@@ -142,7 +142,7 @@ int recover_Linux_SWAP(const union swap_header *swap_header, partition_t *partit
for(j=7;j>=0;j--)
if((swap_header->magic.reserved[i]&(1<<j))!=(char)0)
break;
- partition->part_size=(uint64_t)((8*i+j+1)*PAGE_SIZE);
+ partition->part_size=(uint64_t)(8*i+j+1)*PAGE_SIZE;
}
break;
case UP_LINSWAP2: