From b9d87fea6db547a24465cdc9554df7a215853e2d Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 21 May 2026 12:04:01 -0400 Subject: [PATCH] fix a buffer overlow introduced in recent commit --- src/invent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invent.c b/src/invent.c index 29a4026ef..a1ea94863 100644 --- a/src/invent.c +++ b/src/invent.c @@ -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);