-/* $NetBSD: dr_2.c,v 1.25 2009/03/14 22:52:52 dholland Exp $ */
+/* $NetBSD: dr_2.c,v 1.27 2019/02/03 10:48:46 mrg Exp $ */
/*
* Copyright (c) 1983, 1993
#if 0
static char sccsid[] = "@(#)dr_2.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: dr_2.c,v 1.25 2009/03/14 22:52:52 dholland Exp $");
+__RCSID("$NetBSD: dr_2.c,v 1.27 2019/02/03 10:48:46 mrg Exp $");
#endif
#endif /* not lint */
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')
}
if ((ma > 0 && ta > 0 && (n = str_end(temp)) != 'l' && n != 'r') ||
!strlen(temp)) {
- strlcat(temp, "l", sizeof(temp));
+ strlcat(temp, "l", tempmax);
new = score(f, t, temp, tempmax, rakeme);
if (new > *high && (!rakeme ||
(gunsbear(f, t) && !gunsbear(t, f)))) {