Browse files

Fix computeCommonDirPrefix sometimes not finding the correct prefix

The code in some cases would search backwards in a string starting from
an offset beyond the string's length. Adjust so that doesn't happen and
the code doesn't mistakenly assume there is no common dir prefix.

This bug has in some scenarios led to absolute paths being used for
dir_(md5).html links, making doxygen output needlessly depend on details
of build-time paths.
  • Loading branch information...
Tomasz Śniatowski
Tomasz Śniatowski committed Dec 3, 2015
1 parent 53ca521 commit c6bf96520bcff56d3fd67d4277c05b8db9ac2128
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/dirdef.cpp
@@ -836,6 +836,7 @@ static void computeCommonDirPrefix()
else // dir is shorter than path -> take path of dir as new start
int i=path.findRev('/',l-2);
if (i==-1) // no unique prefix -> stop

0 comments on commit c6bf965

Please sign in to comment.