From 186448052231beb8a92b89cf817c0f8687fdd078 Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 26 Mar 2024 08:25:32 -0400 Subject: [PATCH] get rid of a [-Wformat-overflow=] warning --- src/wizcmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wizcmds.c b/src/wizcmds.c index 626df323d..455c6b60d 100644 --- a/src/wizcmds.c +++ b/src/wizcmds.c @@ -1906,7 +1906,7 @@ wizcustom_callback(winid win, int glyphnum, char *id) } #endif any.a_int = glyphnum + 1; /* avoid 0 */ - Sprintf(buf, "%s %s %s %s", bufa, bufb, bufc, bufu); + Snprintf(buf, sizeof buf, "%s %s %s %s", bufa, bufb, bufc, bufu); add_menu(win, &nul_glyphinfo, &any, 0, 0, ATR_NONE, clr, buf, MENU_ITEMFLAGS_NONE); }