Fix common path "calculation" from logs of multiple branches.
commit74b0014a7adbd4e4c1bf86fa2e359970e6d1c706
authorSimon Hausmann <shausman@rhea.troll.no>
Thu, 7 Jun 2007 07:37:13 +0000 (7 09:37 +0200)
committerSimon Hausmann <shausman@rhea.troll.no>
Thu, 7 Jun 2007 07:37:13 +0000 (7 09:37 +0200)
treefc258e4260ed7ead4bc27b62c700f24c3c5a528e
parent51944c93afc8cabd271fee6b97f4f274ea1227bd
Fix common path "calculation" from logs of multiple branches.
Need to use min instead of max for prev/cur to avoid out-of-bounds
string access. Also treat "i" as index of the last match instead of
a length because in case of a complete match of the two strings
i was off by one.
git-p4