fix a buffer overlow introduced in recent commit

This commit is contained in:
nhmall
2026-05-21 12:04:01 -04:00
parent 18845b6f67
commit b9d87fea6d
+1 -1
View File
@@ -2579,7 +2579,7 @@ reroll_menu(void)
ATR_NONE, NO_COLOR, "start the game with this character",
MENU_ITEMFLAGS_NONE);
any.a_char = 'y';
Strcat(buf, "reroll another character");
Strcpy(buf, "reroll another character");
#ifdef SYSCF
if (sysopt.maxrerolls > 0) {
char *bp = eos(buf);