package server: fix off-by-one error in RemoveLastComponent()

This commit is contained in:
Jessica Hamilton 2015-08-24 15:50:57 +12:00
parent f11d686c96
commit 579efee783
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ public:
else if (index == 0)
fPath.Truncate(1);
else
fPath.Truncate(index - 1);
fPath.Truncate(index);
return *this;
}