releasing version 2.17-1

git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@11092 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2005-02-18 18:44:27 +00:00
parent 3d248f5d00
commit 00d2970fb5
126 changed files with 786 additions and 778 deletions

View File

@@ -1,4 +1,4 @@
/* $NetBSD: sync.c,v 1.22 2004/01/27 20:27:59 jsm Exp $ */
/* $NetBSD: sync.c,v 1.23 2004/09/07 13:20:39 jrf Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)sync.c 8.2 (Berkeley) 4/28/95";
#else
__RCSID("$NetBSD: sync.c,v 1.22 2004/01/27 20:27:59 jsm Exp $");
__RCSID("$NetBSD: sync.c,v 1.23 2004/09/07 13:20:39 jrf Exp $");
#endif
#endif /* not lint */
@@ -380,9 +380,8 @@ sync_update(int type, struct ship *ship, const char *astr, long a, long b, long
break;
}
case W_CAPTAIN:
strncpy(ship->file->captain, astr,
sizeof ship->file->captain - 1);
ship->file->captain[sizeof ship->file->captain - 1] = 0;
strlcpy(ship->file->captain, astr,
sizeof ship->file->captain);
break;
case W_CAPTURED:
if (a < 0)
@@ -419,9 +418,8 @@ sync_update(int type, struct ship *ship, const char *astr, long a, long b, long
ship->specs->hull = a;
break;
case W_MOVE:
strncpy(ship->file->movebuf, astr,
sizeof ship->file->movebuf - 1);
ship->file->movebuf[sizeof ship->file->movebuf - 1] = 0;
strlcpy(ship->file->movebuf, astr,
sizeof ship->file->movebuf);
break;
case W_PCREW:
ship->file->pcrew = a;