]> granicus.if.org Git - nethack/commitdiff
warning fix - missing format string in botl.c
authornhmall <nhmall@nethack.org>
Tue, 2 Feb 2021 21:06:25 +0000 (16:06 -0500)
committernhmall <nhmall@nethack.org>
Tue, 2 Feb 2021 21:06:25 +0000 (16:06 -0500)
src/botl.c

index ff4e86be7d567c3d261763934267feae88a4de23..3905dfda71c9cf983edb88e3b484108b6c2f68a2 100644 (file)
@@ -88,7 +88,7 @@ do_statusline1(void)
             get_strength_str(),
             ACURR(A_DEX), ACURR(A_CON), ACURR(A_INT), ACURR(A_WIS),
             ACURR(A_CHA));
-    Sprintf(nb = eos(nb),
+    Sprintf(nb = eos(nb), "%s",
             (u.ualign.type == A_CHAOTIC)
                 ? "  Chaotic"
                 : (u.ualign.type == A_NEUTRAL) ? "  Neutral" : "  Lawful");