summaryrefslogtreecommitdiffstats
path: root/src/ewf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-03-05 18:48:28 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-03-05 18:48:28 +0100
commit0718628ebaf1d05961aa804a91a0ecc4cd27a010 (patch)
treed0f36a3d5350d900d328551549711305e453ba6b /src/ewf.c
parente41e56453b799076e5001b91854ba8c37160d199 (diff)
For non partionned media formated as FAT, set bytes per sector according
to FAT boot sector information.
Diffstat (limited to 'src/ewf.c')
-rw-r--r--src/ewf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ewf.c b/src/ewf.c
index 95655b9..28fc33b 100644
--- a/src/ewf.c
+++ b/src/ewf.c
@@ -155,6 +155,7 @@ disk_t *fewf_init(const char *device, const arch_fnct_t *arch, const int mode)
disk->geom.cylinders=0;
disk->geom.heads_per_cylinder=1;
disk->geom.sectors_per_head=1;
+ disk->geom.bytes_per_sector=disk->sector_size;
/* Get disk_real_size */
#ifdef LIBEWF_GET_MEDIA_SIZE_HAVE_TWO_ARGUMENTS
{