mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
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:
14
sail/sync.c
14
sail/sync.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user