Merge pull request #1297 from liblouis/issue/1292

Check the length of path before copying into dataPath