summaryrefslogtreecommitdiffstats
path: root/sail
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2019-02-03 10:48:46 +0000
committermrg <mrg@NetBSD.org>2019-02-03 10:48:46 +0000
commit6cc626ca663340efc734eaf0822b2948251aae43 (patch)
tree35be74e990d203f369ca2e3bbb0fc73c587672db /sail
parent0c1b99fd2eee255ee80301b9ad0a88c9daae9f9d (diff)
downloadbsdgames-darwin-6cc626ca663340efc734eaf0822b2948251aae43.tar.gz
bsdgames-darwin-6cc626ca663340efc734eaf0822b2948251aae43.tar.zst
bsdgames-darwin-6cc626ca663340efc734eaf0822b2948251aae43.zip
- enlarge buffer to avoid snprintf() truncation
Diffstat (limited to 'sail')
-rw-r--r--sail/dr_2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sail/dr_2.c b/sail/dr_2.c
index ce4c75c8..40a24839 100644
--- a/sail/dr_2.c
+++ b/sail/dr_2.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dr_2.c,v 1.26 2014/03/28 17:53:47 apb Exp $ */
+/* $NetBSD: dr_2.c,v 1.27 2019/02/03 10:48:46 mrg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)dr_2.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: dr_2.c,v 1.26 2014/03/28 17:53:47 apb Exp $");
+__RCSID("$NetBSD: dr_2.c,v 1.27 2019/02/03 10:48:46 mrg Exp $");
#endif
#endif /* not lint */
@@ -252,7 +252,7 @@ try(struct ship *f, struct ship *t,
int ma, int ta, bool af, int vma, int dir, int *high, int rakeme)
{
int new, n;
- char st[4];
+ char st[11];
#define rakeyou (gunsbear(f, t) && !gunsbear(t, f))
if ((n = str_end(temp)) < '1' || n > '9')