diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-14 03:14:18 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-14 03:14:18 +0000 |
commit | 52a2349f13ab2da84a31680fbdab1ddf5dc103a2 (patch) | |
tree | 9a6d875f19d53cc939d5f5f9305bf16ae6e2ac23 /usr.sbin/ppp/pppctl | |
parent | 28a6c7df4ae6dd42bdebc4ca2972d7f9ef5f9e5a (diff) |
strlcpy, obvious
Diffstat (limited to 'usr.sbin/ppp/pppctl')
-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); |