From d79365c6b07801f5d63d2216fe552b6cf5f96bef Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 2 Feb 2021 17:20:41 -0500 Subject: [PATCH] add format string arg to Sprintf in hack.c --- src/hack.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hack.c b/src/hack.c index 27a1735b0..554027b65 100644 --- a/src/hack.c +++ b/src/hack.c @@ -1727,9 +1727,10 @@ domove_core(void) because you don't see remembered terrain while underwater; although the hero can attack an adjacent monster this way, assume he can't reach out far enough to distinguish terrain */ - Sprintf(buf, (Is_waterlevel(&u.uz) && levl[x][y].typ == AIR) - ? "an air bubble" - : "nothing"); + Sprintf(buf, "%s", + (Is_waterlevel(&u.uz) && levl[x][y].typ == AIR) + ? "an air bubble" + : "nothing"); } else if (solid) { /* glyph might indicate unseen terrain if hero is blind; unlike searching, this won't reveal what that terrain is