cjd / mtpfs

Filesystem to mount MTP devices directly
GNU General Public License v3.0
62 stars 16 forks source link

Allocate additional byte for trailing null #8

Closed wking closed 8 years ago

wking commented 9 years ago

These variables needs a byte for every character in the path and an additional trailing null, but the length returned by strlen excludes the trailing null.

This PR is based on #5, but I can rebase it onto master if the reformatting in #5 isn't wanted.