summaryrefslogtreecommitdiffstats
path: root/source/smbd/mangle.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/smbd/mangle.c')
-rw-r--r--source/smbd/mangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/mangle.c b/source/smbd/mangle.c
index ea441e2ded5..3d214d46589 100644
--- a/source/smbd/mangle.c
+++ b/source/smbd/mangle.c
@@ -555,7 +555,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[i] ) == s2[i]) )
+ while( s1[i] && (tolower( s1[1] ) == s2[i]) )
i++;
if( !s1[i] && !s2[i] )
{