summaryrefslogtreecommitdiffstats
path: root/src/ntfs.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-06-23 19:28:58 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-06-23 19:28:58 +0200
commitb849a82750086bdddd127c7d43dd0a7381b3c28e (patch)
treeb7d0fd90e7e93e34455f0c582b2193803bbce4e1 /src/ntfs.c
parent50a0862d48da7f0260524b17c3b33281a1b5dcc7 (diff)
Make the code less C++ hostile
Diffstat (limited to 'src/ntfs.c')
-rw-r--r--src/ntfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ntfs.c b/src/ntfs.c
index 2e2fcc7..8f7ded0 100644
--- a/src/ntfs.c
+++ b/src/ntfs.c
@@ -326,8 +326,8 @@ static int ntfs_get_attr_aux(const char *attr_record, const int my_type, partiti
long lcn;
int64_t deltaxcn = (int64_t)-1; /* Change in [vl]cn. */
mapping_pairs_offset=NTFS_GETU16(attr_record+32);
- buf=attr_record+mapping_pairs_offset;
- attr_end = (const char*)attr_record + attr_len;
+ buf=(const unsigned char*)attr_record + mapping_pairs_offset;
+ attr_end = (const unsigned char*)attr_record + attr_len;
lcn = 0;
/* return first element of the run_list */
{