summaryrefslogtreecommitdiffstats
path: root/src/fat_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-06-02 23:41:25 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-06-02 23:41:25 +0200
commit35cdeeff7c16480e213dfffaba3f5de8442f1c3e (patch)
tree453f19ad2d80f1dc8e976fa39a5e136c2382762e /src/fat_dir.c
parent3d61b96643f3a52b0403280cb3ead6bcf9ab2c61 (diff)
Fix filenames when copying accentuated filenames from a FAT under MacOSX
Diffstat (limited to 'src/fat_dir.c')
-rw-r--r--src/fat_dir.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/fat_dir.c b/src/fat_dir.c
index 41bcacd..69108f7 100644
--- a/src/fat_dir.c
+++ b/src/fat_dir.c
@@ -523,10 +523,7 @@ static int fat_copy(disk_t *disk_car, const partition_t *partition, dir_data_t *
unsigned int fat_meth=FAT_FOLLOW_CLUSTER;
uint64_t start_fat1,start_data,part_size;
unsigned long int no_of_cluster,fat_length;
-
- new_file=MALLOC(strlen(dir_data->local_dir)+strlen(dir_data->current_directory)+1);
- strcpy(new_file,dir_data->local_dir);
- strcat(new_file,dir_data->current_directory);
+ new_file=gen_local_filename(dir_data->local_dir, dir_data->current_directory);
f_out=create_file(new_file);
if(!f_out)
{