summaryrefslogtreecommitdiff
path: root/src/map/pet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pet.c')
-rw-r--r--src/map/pet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index 71d8d1eb3..256324d29 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -679,7 +679,7 @@ int pet_change_name_ack(struct map_session_data *sd, const char *name, int flag)
aFree(newname);
return 0;
}
- memcpy(pd->pet.name, newname, NAME_LENGTH);
+ safestrncpy(pd->pet.name, newname, NAME_LENGTH);
aFree(newname);
clif->charnameack (0,&pd->bl);
pd->pet.rename_flag = 1;