summaryrefslogtreecommitdiffstats
path: root/src/ntfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-03-24 16:01:52 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-03-24 16:01:52 +0100
commitcdfe231f21efa69efb3f399d91c648e3b3dc1aa1 (patch)
treed3e69a98a850b4e722efde4a3b3640e78420e1df /src/ntfs_dir.c
parentdc0f1fe09115ab30e101615b1e657d9e8ecab7ec (diff)
add a cast for iconv call
Diffstat (limited to 'src/ntfs_dir.c')
-rw-r--r--src/ntfs_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
index 64b015e..f595013 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -158,7 +158,7 @@ static int ntfs_ucstoutf8(iconv_t cd, const ntfschar *ins, int ins_len, char **o
inb_left = ins_len << 1; // ntfschar is 16-bit
outb_left = outs_len - 1; // reserve 1 byte for NUL
- if (iconv(cd, &inp, &inb_left, &outp, &outb_left) == (size_t)(-1))
+ if (iconv(cd, (char**)&inp, &inb_left, &outp, &outb_left) == (size_t)(-1))
{
// Regardless of the value of errno
log_error("ntfs_ucstoutf8: iconv failed\n");