diff options
Diffstat (limited to 'games/sail')
-rw-r--r-- | games/sail/pl_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/sail/pl_main.c b/games/sail/pl_main.c index 02faa79..4f57121 100644 --- a/games/sail/pl_main.c +++ b/games/sail/pl_main.c @@ -202,7 +202,7 @@ reprint: if (!*captain) (void) strcpy(captain, "no name"); else - captain[strlen(captain) - 1] = '\0'; + captain[sizeof(captain) - 1] = '\0'; } Write(W_CAPTAIN, ms, 1, (int)captain, 0, 0, 0); for (n = 0; n < 2; n++) { @@ -211,7 +211,7 @@ reprint: printf("\nInitial broadside %s (grape, chain, round, double): ", n ? "right" : "left"); (void) fflush(stdout); - (void) scanf("%s", buf); + (void) scanf("%9s", buf); switch (*buf) { case 'g': load = L_GRAPE; |