summaryrefslogtreecommitdiffstats
path: root/src/ntfs_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/ntfs_dir.c
parent3d61b96643f3a52b0403280cb3ead6bcf9ab2c61 (diff)
Fix filenames when copying accentuated filenames from a FAT under MacOSX
Diffstat (limited to 'src/ntfs_dir.c')
-rw-r--r--src/ntfs_dir.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
index 6733467..4ec2843 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -354,13 +354,7 @@ static int ntfs_copy(disk_t *disk_car, const partition_t *partition, dir_data_t
block_size = index_get_size(inode);
else
block_size = 0;
- {
- int l1=strlen(dir_data->local_dir);
- int l2=strlen(dir_data->current_directory);
- new_file=MALLOC(l1+l2+1);
- l1=filename_convert(new_file,dir_data->local_dir,l1+1);
- filename_convert(new_file+l1,dir_data->current_directory,l2+1);
- }
+ new_file=gen_local_filename(dir_data->local_dir, dir_data->current_directory);
f_out=create_file(new_file);
if(!f_out)
{