diff options
author | joerg <joerg@NetBSD.org> | 2011-05-23 22:53:25 +0000 |
---|---|---|
committer | joerg <joerg@NetBSD.org> | 2011-05-23 22:53:25 +0000 |
commit | ef178239f8a825e1c9dfde4c994a8eb7d680c9b2 (patch) | |
tree | da736f35d02ffb7969f5aaebf7ca13bc8c3be666 /hack/hack.timeout.c | |
parent | dfc4f283126d2186a83011182f21659dd08bb35e (diff) | |
download | bsdgames-darwin-ef178239f8a825e1c9dfde4c994a8eb7d680c9b2.tar.gz bsdgames-darwin-ef178239f8a825e1c9dfde4c994a8eb7d680c9b2.tar.zst bsdgames-darwin-ef178239f8a825e1c9dfde4c994a8eb7d680c9b2.zip |
Correctly print variables as strings, not as format string.
Diffstat (limited to 'hack/hack.timeout.c')
-rw-r--r-- | hack/hack.timeout.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hack/hack.timeout.c b/hack/hack.timeout.c index 381205c5..17b3c177 100644 --- a/hack/hack.timeout.c +++ b/hack/hack.timeout.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.timeout.c,v 1.8 2009/08/12 07:28:41 dholland Exp $ */ +/* $NetBSD: hack.timeout.c,v 1.9 2011/05/23 22:53:25 joerg Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.timeout.c,v 1.8 2009/08/12 07:28:41 dholland Exp $"); +__RCSID("$NetBSD: hack.timeout.c,v 1.9 2011/05/23 22:53:25 joerg Exp $"); #endif /* not lint */ #include "hack.h" @@ -128,7 +128,7 @@ stoned_dialogue(void) long i = (Stoned & TIMEOUT); if (i > 0 && i <= SIZE(stoned_texts)) - pline(stoned_texts[SIZE(stoned_texts) - i]); + pline("%s", stoned_texts[SIZE(stoned_texts) - i]); if (i == 5) Fast = 0; if (i == 3) |