Use MAXPATHLEN+1 for size of dirname_ rather than hardcoded constant.
Merge pull request #1315 from blipvert/fixes/34

Use MAXPATHLEN+1 for size of dirname_ rather than hardcoded number.