fixed a buffer overrun problem in resolve_relative_path.

--HG--
branch : 2.0