summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/mangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/mangle.c b/source3/smbd/mangle.c
index 9789f06e0c..e50537e4cb 100644
--- a/source3/smbd/mangle.c
+++ b/source3/smbd/mangle.c
@@ -533,7 +533,7 @@ static void cache_mangled_name( char *mangled_name, char *raw_name )
if( s1 && (s2 = strrchr( raw_name, '.' )) )
{
i = 1;
- while( s1[i] && (tolower( s1[1] ) == s2[i]) )
+ while( s1[i] && (tolower( s1[i] ) == s2[i]) )
i++;
if( !s1[i] && !s2[i] )
{