* fix incorrect positioning when parsing minor version string

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40346 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2011-02-01 21:57:52 +00:00
parent e48e64ad64
commit cb16f69582

View File

@ -373,7 +373,7 @@ BPackageInfo::Parser::_ParseVersionValue(BPackageVersion* value,
word.text.CopyInto(minor, firstDotPos + 1, word.text.Length());
else {
word.text.CopyInto(minor, firstDotPos + 1,
secondDotPos - firstDotPos + 1);
secondDotPos - (firstDotPos + 1));
word.text.CopyInto(micro, secondDotPos + 1, word.text.Length());
}
}