NUL terminate profilename

This commit is contained in:
James R 2022-02-19 20:26:31 -08:00
parent 27a97f03d9
commit c24c0457e3

View file

@ -30,6 +30,7 @@ profile_t* PR_MakeProfile(const char *prname, const char *pname, const char *sna
new->version = PROFILEVER;
strcpy(new->profilename, prname);
new->profilename[sizeof new->profilename - 1] = '\0';
strcpy(new->skinname, sname);
strcpy(new->playername, pname);