summaryrefslogtreecommitdiff
path: root/games/hack/hack.zap.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/hack/hack.zap.c')
-rw-r--r--games/hack/hack.zap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/hack/hack.zap.c b/games/hack/hack.zap.c
index 62d76a342c8..d75892ff387 100644
--- a/games/hack/hack.zap.c
+++ b/games/hack/hack.zap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.zap.c,v 1.5 2003/03/16 21:22:36 camield Exp $ */
+/* $OpenBSD: hack.zap.c,v 1.6 2003/05/07 09:48:57 tdeval Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -62,7 +62,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: hack.zap.c,v 1.5 2003/03/16 21:22:36 camield Exp $";
+static char rcsid[] = "$OpenBSD: hack.zap.c,v 1.6 2003/05/07 09:48:57 tdeval Exp $";
#endif /* not lint */
#include "hack.h"
@@ -235,7 +235,7 @@ dozap()
pline("You may wish for an object. What do you want? ");
getlin(buf);
if(buf[0] == '\033') buf[0] = 0;
- otmp = readobjnam(buf);
+ otmp = readobjnam(buf, sizeof buf);
otmp = addinv(otmp);
prinv(otmp);
break;