package server: fix off-by-one error in RemoveLastComponent()
This commit is contained in:
parent
f11d686c96
commit
579efee783
|
@ -157,7 +157,7 @@ public:
|
||||||
else if (index == 0)
|
else if (index == 0)
|
||||||
fPath.Truncate(1);
|
fPath.Truncate(1);
|
||||||
else
|
else
|
||||||
fPath.Truncate(index - 1);
|
fPath.Truncate(index);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue