diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-25 22:23:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-25 22:23:45 +0000 |
commit | ddf09fde523a4f9d5d974f0d288a33d4bfb7fcc9 (patch) | |
tree | 7951044ae076a921877414031523f89bd8ce1ed3 /games/sail/sync.c | |
parent | 36047f77bb54a740509ed4c3bcbcc0e3025db0b8 (diff) |
string cleanup; ok millert
Diffstat (limited to 'games/sail/sync.c')
-rw-r--r-- | games/sail/sync.c | 7 |
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: |