Fix stupid bug caused by leaving the path string as non-NULL terminated on initialization.

This failed visibly when the allocated buffer did not already
lead with \0.