summaryrefslogtreecommitdiffstats
path: root/src/ntfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-04-14 11:15:43 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-04-14 11:15:43 +0200
commit45bd9c1628c0759505cba64e5e44ebff31dd5cb1 (patch)
treea162b09095b3fef95186db974e9cea7ed12f49aa /src/ntfs_dir.c
parent4e0c192abec6352dfa73d6d281ac3b788453d830 (diff)
Fix two gcc warnings in src/ntfs_dir.c
Diffstat (limited to 'src/ntfs_dir.c')
-rw-r--r--src/ntfs_dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
index 82f4fd0..fcf542c 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -235,10 +235,10 @@ static int ntfs_td_list_entry( struct ntfs_dir_struct *ls, const ntfschar *name
ctx_si = ntfs_attr_get_search_ctx(ni, ni->mrec);
if (ctx_si)
{
- if (ntfs_attr_lookup(AT_STANDARD_INFORMATION, AT_UNNAMED, 0, 0, 0, NULL, 0, ctx_si)==0)
+ if (ntfs_attr_lookup(AT_STANDARD_INFORMATION, AT_UNNAMED, 0, CASE_SENSITIVE, 0, NULL, 0, ctx_si)==0)
{
const ATTR_RECORD *attr = ctx_si->attr;
- const STANDARD_INFORMATION *si = (STANDARD_INFORMATION*)((char*)attr +
+ const STANDARD_INFORMATION *si = (const STANDARD_INFORMATION*)((const char*)attr +
le16_to_cpu(attr->value_offset));
if(si)
{