]> granicus.if.org Git - nethack/commitdiff
another compiler warning
authorkeni <keni>
Sat, 5 Mar 2011 21:16:31 +0000 (21:16 +0000)
committerkeni <keni>
Sat, 5 Mar 2011 21:16:31 +0000 (21:16 +0000)
src/zap.c

index 8c41df96eb2c7913d0ea85415399f9a55fe6c419..d74a7363ce7be251d96a2c5b4cbb05722f3c806a 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -4216,9 +4216,9 @@ short exploding_wand_typ;
                        pline(see_txt);
                        newsym(x, y);
                    } else if (sense_txt) {
-                       You(sense_txt);
+                       You("%s", sense_txt);
                    } else if (hear_txt) {
-                       if (!Deaf) You_hear(hear_txt);
+                       if (!Deaf) You_hear("%s", hear_txt);
                    }
                    if (picking_at(x, y)) {
                        stop_occupation();