diff --git a/src/k_menufunc.c b/src/k_menufunc.c index 4f0a2ec64..c806446d1 100644 --- a/src/k_menufunc.c +++ b/src/k_menufunc.c @@ -3775,7 +3775,7 @@ void M_HandleProfileEdit(void) strncpy(optionsmenu.profile->profilename, cv_dummyprofilename.string, PROFILENAMELEN); if (strlen(cv_dummyprofileplayername.string)) - strcpy(optionsmenu.profile->playername, cv_dummyprofileplayername.string); + strncpy(optionsmenu.profile->playername, cv_dummyprofileplayername.string, MAXPLAYERNAME); } // special menuitem key handler for video mode list