From ef178239f8a825e1c9dfde4c994a8eb7d680c9b2 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 23 May 2011 22:53:25 +0000 Subject: Correctly print variables as strings, not as format string. --- hack/hack.potion.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hack/hack.potion.c') diff --git a/hack/hack.potion.c b/hack/hack.potion.c index 5707217b..09c00bc9 100644 --- a/hack/hack.potion.c +++ b/hack/hack.potion.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.potion.c,v 1.8 2009/08/12 07:28:41 dholland Exp $ */ +/* $NetBSD: hack.potion.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 #ifndef lint -__RCSID("$NetBSD: hack.potion.c,v 1.8 2009/08/12 07:28:41 dholland Exp $"); +__RCSID("$NetBSD: hack.potion.c,v 1.9 2011/05/23 22:53:25 joerg Exp $"); #endif /* not lint */ #include "hack.h" @@ -286,7 +286,7 @@ strange_feeling(struct obj *obj, const char *txt) if (flags.beginner) pline("You have a strange feeling for a moment, then it passes."); else - pline(txt); + pline("%s", txt); if (!objects[obj->otyp].oc_name_known && !objects[obj->otyp].oc_uname) docall(obj); useup(obj); -- cgit v1.2.3-56-ge451