summaryrefslogtreecommitdiffstats
path: root/src/ext2grp.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-07-26 12:16:03 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-07-26 12:16:03 +0200
commit6aa53d5e91e5f3163d32e4ce43e8e71318017b93 (patch)
tree18d278f64a75b84aab5fa16f471b35f69b66c61a /src/ext2grp.c
parent0a9c6354a65efea4c602957644561ad7120722f9 (diff)
Code style cleanup
Diffstat (limited to 'src/ext2grp.c')
-rw-r--r--src/ext2grp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ext2grp.c b/src/ext2grp.c
index 25c69ce..c48ec2b 100644
--- a/src/ext2grp.c
+++ b/src/ext2grp.c
@@ -64,8 +64,8 @@ unsigned int ext2_fix_group(alloc_data_t *list_search_space, disk_t *disk, parti
alloc_data_t *current_search_space;
current_search_space=td_list_entry(search_walker, alloc_data_t, list);
log_info("ext2_group: %llu\n", (long long unsigned)current_search_space->start);
- current_search_space->start=current_search_space->start*mult + (sb->s_log_block_size==0?1024:0);
- current_search_space->end=current_search_space->end*mult+mult-1 + (sb->s_log_block_size==0?1024:0);
+ current_search_space->start=current_search_space->start*mult + (le32(sb->s_log_block_size)==0?1024:0);
+ current_search_space->end=current_search_space->end*mult+mult-1 + (le32(sb->s_log_block_size)==0?1024:0);
}
blocksize=EXT2_MIN_BLOCK_SIZE<<le32(sb->s_log_block_size);
}