get rid of a [-Wformat-overflow=] warning

This commit is contained in:
nhmall
2024-03-26 08:25:32 -04:00
parent 66f92ad182
commit 1864480522
+1 -1
View File
@@ -1906,7 +1906,7 @@ wizcustom_callback(winid win, int glyphnum, char *id)
} }
#endif #endif
any.a_int = glyphnum + 1; /* avoid 0 */ 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, add_menu(win, &nul_glyphinfo, &any, 0, 0, ATR_NONE, clr, buf,
MENU_ITEMFLAGS_NONE); MENU_ITEMFLAGS_NONE);
} }