From dbbfda0e96037da4f208ff8f00d181a5294484ae Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 22 Jun 2013 22:30:13 -0700 Subject: add new stuff stuff (with tests!), poison memcmp and strncpy --- src/map/party.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/map/party.cpp') 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 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. */ -- cgit v1.2.3-60-g2f50