Fix crash, replace strcpy with strncpy
Merge pull request #3 from edwinfinch/master

Fix crash, replace strcpy with strncpy