Fixed lack of null terminator in strcpy