Replace strcpy with strncpy