From: Edward Wang Date: Fri, 26 Apr 1985 11:59:03 +0000 (-0800) Subject: lint X-Git-Tag: BSD-4_3-Snapshot-Development~8195 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/7f1cb7894b140079d0101dd9cc30a8e32417aaa1 lint SCCS-vsn: games/sail/dr_1.c 2.13 SCCS-vsn: games/sail/dr_main.c 2.3 SCCS-vsn: games/sail/pl_main.c 2.3 --- diff --git a/usr/src/games/sail/dr_1.c b/usr/src/games/sail/dr_1.c index f70625d28c..89fde5536d 100644 --- a/usr/src/games/sail/dr_1.c +++ b/usr/src/games/sail/dr_1.c @@ -5,7 +5,7 @@ */ #ifndef lint -static char *sccsid = "@(#)dr_1.c 2.12 85/04/23"; +static char *sccsid = "@(#)dr_1.c 2.13 85/04/25"; #endif #include "driver.h" @@ -382,7 +382,7 @@ next() p = "Driver"; if (islower(*p)) *p = toupper(*p); - strncpy(bestship->file->captain, p, + (void) strncpy(bestship->file->captain, p, sizeof bestship->file->captain); bestship->file->captain [sizeof bestship->file->captain - 1] = 0; diff --git a/usr/src/games/sail/dr_main.c b/usr/src/games/sail/dr_main.c index 374175eadb..9699cb28a8 100644 --- a/usr/src/games/sail/dr_main.c +++ b/usr/src/games/sail/dr_main.c @@ -5,7 +5,7 @@ */ #ifndef lint -static char *sccsid = "@(#)dr_main.c 2.2 85/04/23"; +static char *sccsid = "@(#)dr_main.c 2.3 85/04/25"; #endif #include "driver.h" diff --git a/usr/src/games/sail/pl_main.c b/usr/src/games/sail/pl_main.c index ec69324761..6e52c74b2d 100644 --- a/usr/src/games/sail/pl_main.c +++ b/usr/src/games/sail/pl_main.c @@ -5,7 +5,7 @@ */ #ifndef lint -static char *sccsid = "@(#)pl_main.c 2.2 85/04/23"; +static char *sccsid = "@(#)pl_main.c 2.3 85/04/25"; #endif #include "player.h"