change strcpy to strncpy