make_relative: fix bug when last pathname part matches partially
commit53aa49948a71dabd387644b962d66dc8162ddea1
authorrofl0r <retnyg@gmx.net>
Mon, 13 Jan 2014 20:19:51 +0000 (13 21:19 +0100)
committerrofl0r <retnyg@gmx.net>
Mon, 13 Jan 2014 20:19:54 +0000 (13 21:19 +0100)
treec59f05e67d49f6067cbf00188820e152246ea0b6
parentd948070c8f5d77049c68b54c2086c45113e91942
make_relative: fix bug when last pathname part matches partially

with for example "/foo" and "/foobar", the result was "bar"
instead of "../foobar".
also fix potential endless loop when the same string is passed
twice.
rcb.pl