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.invent.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.invent.c')
-rw-r--r-- | hack/hack.invent.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hack/hack.invent.c b/hack/hack.invent.c index 8f9f768e..a259c855 100644 --- a/hack/hack.invent.c +++ b/hack/hack.invent.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.invent.c,v 1.14 2009/08/12 07:28:40 dholland Exp $ */ +/* $NetBSD: hack.invent.c,v 1.15 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.invent.c,v 1.14 2009/08/12 07:28:40 dholland Exp $"); +__RCSID("$NetBSD: hack.invent.c,v 1.15 2011/05/23 22:53:25 joerg Exp $"); #endif /* not lint */ #include <assert.h> @@ -655,7 +655,7 @@ askchain(struct obj *objchn, char *olets, int allflag, if (ckfn && !(*ckfn) (otmp)) continue; if (!allflag) { - pline(xprname(otmp, ilet)); + pline("%s", xprname(otmp, ilet)); addtopl(" [nyaq]? "); sym = readchar(); } else @@ -699,7 +699,7 @@ obj_to_let(struct obj *obj) void prinv(struct obj *obj) { - pline(xprname(obj, obj_to_let(obj))); + pline("%s", xprname(obj, obj_to_let(obj))); } static char * |