author | Simon Hausmann <shausman@trolltech.com> | |
Thu, 7 Jun 2007 07:37:13 +0000 (09:37 +0200) | ||
committer | Simon Hausmann <shausman@trolltech.com> | |
Thu, 7 Jun 2007 07:37:13 +0000 (09:37 +0200) | ||
commit | 583e170706f5d69770d0de220286f8f0f73667f3 | |
tree | 9764257011f5c1f96afff586187c5099a0f577f6 | tree | snapshot |
parent | 845b42cb6c1c1e80c4283234ea2162cae809bd50 | commit | diff |
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.
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
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.
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
contrib/fast-import/git-p4 | diff | blob | history |