diff options
author | 2003-04-25 22:23:44 +0000 | |
---|---|---|
committer | 2003-04-25 22:23:44 +0000 | |
commit | 0841e2d406642bd27d6908d4102d3d35d97fec7b (patch) | |
tree | 489af78df6d45294b0eca10b7646d436d0f8b5bb | |
parent | Remove note about POLLMSG. not used and not provided. ok millert@ (diff) | |
download | wireguard-openbsd-0841e2d406642bd27d6908d4102d3d35d97fec7b.tar.xz wireguard-openbsd-0841e2d406642bd27d6908d4102d3d35d97fec7b.zip |
string cleanup; ok millert
-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: |