summaryrefslogtreecommitdiffstats
path: root/hunt
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-03-30 05:46:54 +0000
committerdholland <dholland@NetBSD.org>2014-03-30 05:46:54 +0000
commitad6d847b30dcf46c622d27dd69e4fd39630a831b (patch)
tree9588fbb5c1a1284e411ea929889308a110b432ab /hunt
parentb8ff27859a7e560d13fd0f5afff72ca00cd1b2f8 (diff)
downloadbsdgames-darwin-ad6d847b30dcf46c622d27dd69e4fd39630a831b.tar.gz
bsdgames-darwin-ad6d847b30dcf46c622d27dd69e4fd39630a831b.tar.zst
bsdgames-darwin-ad6d847b30dcf46c622d27dd69e4fd39630a831b.zip
curses has printw, use it.
Diffstat (limited to 'hunt')
-rw-r--r--hunt/hunt/hunt.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/hunt/hunt/hunt.c b/hunt/hunt/hunt.c
index 174c1d5e..4cdbf8be 100644
--- a/hunt/hunt/hunt.c
+++ b/hunt/hunt/hunt.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt.c,v 1.56 2014/03/30 05:44:55 dholland Exp $ */
+/* $NetBSD: hunt.c,v 1.57 2014/03/30 05:46:54 dholland Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
* All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hunt.c,v 1.56 2014/03/30 05:44:55 dholland Exp $");
+__RCSID("$NetBSD: hunt.c,v 1.57 2014/03/30 05:46:54 dholland Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -376,7 +376,6 @@ find_driver(void)
socklen_t hostlen;
unsigned num;
int i, c;
- char buf[128];
msg = C_PLAYER;
#ifdef MONITOR
@@ -408,10 +407,8 @@ find_driver(void)
for (i = 0; i < HEIGHT - 4 && i < (int)num; i++) {
move(3 + i, 0);
host = serverlist_gethost(i, &hostlen);
- (void) snprintf(buf, sizeof(buf),
- "%8c %.64s", 'a' + i,
- lookuphost(host, hostlen));
- addstr(buf);
+ printw("%8c %.64s", 'a' + i,
+ lookuphost(host, hostlen));
}
move(4 + i, 0);
addstr("Enter letter: ");