summaryrefslogtreecommitdiff
path: root/games/sail
diff options
context:
space:
mode:
Diffstat (limited to 'games/sail')
-rw-r--r--games/sail/sync.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/games/sail/sync.c b/games/sail/sync.c
index 458b57be061..b9ef214d570 100644
--- a/games/sail/sync.c
+++ b/games/sail/sync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sync.c,v 1.4 2003/04/06 18:50:38 deraadt Exp $ */
+/* $OpenBSD: sync.c,v 1.5 2003/04/25 22:23:44 deraadt Exp $ */
/* $NetBSD: sync.c,v 1.9 1998/08/30 09:19:40 veego Exp $ */
/*
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)sync.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: sync.c,v 1.4 2003/04/06 18:50:38 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: sync.c,v 1.5 2003/04/25 22:23:44 deraadt Exp $";
#endif
#endif /* not lint */
@@ -499,7 +499,8 @@ sync_update(type, ship, astr, a, b, c, d)
windspeed = b;
break;
case W_BEGIN:
- (void) strcpy(ship->file->captain, "begin");
+ (void) strlcpy(ship->file->captain, "begin",
+ sizeof ship->file->captain);
people++;
break;
case W_END: