summaryrefslogtreecommitdiffstats
path: root/src/photorec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/photorec.c')
-rw-r--r--src/photorec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/photorec.c b/src/photorec.c
index 0273a39..d8b0da1 100644
--- a/src/photorec.c
+++ b/src/photorec.c
@@ -706,16 +706,16 @@ void set_filename(file_recovery_t *file_recovery, struct ph_param *params)
if(file_recovery->extension==NULL || file_recovery->extension[0]=='\0')
{
snprintf(file_recovery->filename,sizeof(file_recovery->filename)-1,
- "%s.%u/%c%07u", params->recup_dir,
+ "%s.%u/%c%07lu", params->recup_dir,
params->dir_num, (broken?'b':'f'),
- (unsigned int)((file_recovery->location.start - params->partition->part_offset)/ params->disk->sector_size));
+ (unsigned long int)((file_recovery->location.start - params->partition->part_offset)/ params->disk->sector_size));
}
else
{
snprintf(file_recovery->filename,sizeof(file_recovery->filename)-1,
- "%s.%u/%c%07u.%s", params->recup_dir,
+ "%s.%u/%c%07lu.%s", params->recup_dir,
params->dir_num, (broken?'b':'f'),
- (unsigned int)((file_recovery->location.start - params->partition->part_offset) / params->disk->sector_size), file_recovery->extension);
+ (unsigned long int)((file_recovery->location.start - params->partition->part_offset) / params->disk->sector_size), file_recovery->extension);
}
}