Use snprintf instead of strcpy/strcat in mkpathname(), and check calloc return value.
Use snprintf instead of strcpy/strcat in mkpathname(), and check
calloc return value.

gdamore/less-fork,gdamore/less-fork