diff options
author | dholland <dholland@NetBSD.org> | 2009-03-14 18:32:47 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-03-14 18:32:47 +0000 |
commit | 46cbf84f76cfe8fb29ae3f5a16b5302a687c9691 (patch) | |
tree | 1953b1d7a506556d3ce5202928b342822c89d9e4 /sail/pl_5.c | |
parent | 8e56f6b8823a74c576682b4191df9d6182d0001d (diff) | |
download | bsdgames-darwin-46cbf84f76cfe8fb29ae3f5a16b5302a687c9691.tar.gz bsdgames-darwin-46cbf84f76cfe8fb29ae3f5a16b5302a687c9691.tar.zst bsdgames-darwin-46cbf84f76cfe8fb29ae3f5a16b5302a687c9691.zip |
String buffer cleanup. sprintf bad.
Diffstat (limited to 'sail/pl_5.c')
-rw-r--r-- | sail/pl_5.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sail/pl_5.c b/sail/pl_5.c index 9f22f92b..eef6084f 100644 --- a/sail/pl_5.c +++ b/sail/pl_5.c @@ -1,4 +1,4 @@ -/* $NetBSD: pl_5.c,v 1.19 2008/01/28 01:58:01 dholland Exp $ */ +/* $NetBSD: pl_5.c,v 1.20 2009/03/14 18:32:47 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)pl_5.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pl_5.c,v 1.19 2008/01/28 01:58:01 dholland Exp $"); +__RCSID("$NetBSD: pl_5.c,v 1.20 2009/03/14 18:32:47 dholland Exp $"); #endif #endif /* not lint */ @@ -146,9 +146,9 @@ acceptmove(void) } } if (*buf) - strcpy(movebuf, buf); + strlcpy(movebuf, buf, sizeof(movebuf)); else - strcpy(movebuf, "d"); + strlcpy(movebuf, "d", sizeof(movebuf)); Writestr(W_MOVE, ms, movebuf); Msg("Helm: %s.", movebuf); } |