Fix crash, replace strcpy with strncpy