summaryrefslogtreecommitdiffstats
path: root/src/ntfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-10-17 07:59:33 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-10-17 07:59:33 +0200
commit8ca78851c4747a3c459a4d3966016d0b68a39adb (patch)
treef264db8a6650e52d46e881ef90e5bd9ef1228ec5 /src/ntfs_dir.c
parentdd7cf48369c656bac0ab8136915db453da0476b0 (diff)
ntfs_mbstoucs takes 2 parameters in ntfs-3g and 3 in ntfsprogs
Diffstat (limited to 'src/ntfs_dir.c')
-rw-r--r--src/ntfs_dir.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
index a08bdea..fbb98d9 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -401,8 +401,11 @@ static int ntfs_copy(disk_t *disk_car, const partition_t *partition, dir_data_t
if(stream_name != NULL)
{
ntfschar *stream_name_ucs=NULL;
- /* FIXME */
+#ifdef NTFS_MBSTOUCS_HAVE_TWO_ARGUMENTS
const int len=ntfs_mbstoucs(stream_name, &stream_name_ucs);
+#else
+ const int len=ntfs_mbstoucs(stream_name, &stream_name_ucs, 0);
+#endif
if(len < 0)
log_error("ntfs_mbstoucs failed\n");
else