diff options
author | 2003-04-14 03:14:17 +0000 | |
---|---|---|
committer | 2003-04-14 03:14:17 +0000 | |
commit | e32f1db0f984fb13e29f50d9db3a7dc3e961cecb (patch) | |
tree | da22b5f28625203ffc7f9cf5639f0926826e7e27 | |
parent | More strlcpy/strlcat and use memmove for equivalent() so it is more (diff) | |
download | wireguard-openbsd-e32f1db0f984fb13e29f50d9db3a7dc3e961cecb.tar.xz wireguard-openbsd-e32f1db0f984fb13e29f50d9db3a7dc3e961cecb.zip |
strlcpy, obvious
-rw-r--r-- | usr.sbin/ppp/pppctl/pppctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/pppctl/pppctl.c b/usr.sbin/ppp/pppctl/pppctl.c index fd35621ecfc..fb773c50548 100644 --- a/usr.sbin/ppp/pppctl/pppctl.c +++ b/usr.sbin/ppp/pppctl/pppctl.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pppctl.c,v 1.11 2003/04/04 20:28:57 deraadt Exp $ + * $Id: pppctl.c,v 1.12 2003/04/14 03:14:17 deraadt Exp $ */ #include <sys/types.h> @@ -380,7 +380,7 @@ main(int argc, char **argv) Command[sizeof(Command)-1] = '\0'; for (arg++; arg < argc; arg++) { if (len && len < sizeof(Command)-1) { - strcpy(Command+len, " "); + strlcpy(Command+len, " ", sizeof Command - len); len++; } strncpy(Command+len, argv[arg], sizeof(Command)-len-1); |