summaryrefslogtreecommitdiff
path: root/src/map/party.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/party.cpp')
-rw-r--r--src/map/party.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/party.cpp b/src/map/party.cpp
index de655d7..62493c8 100644
--- a/src/map/party.cpp
+++ b/src/map/party.cpp
@@ -65,8 +65,7 @@ int party_create(dumb_ptr<map_session_data> sd, const char *name)
char pname[24];
nullpo_ret(sd);
- strncpy(pname, name, 24);
- pname[23] = '\0';
+ strzcpy(pname, name, 24);
tmw_TrimStr(pname);
/* The party name is empty/invalid. */