summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/pppctl
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-04 20:28:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-04 20:28:58 +0000
commit3b94f8a0d302e3a08fd645b248baa4aa5dda7d77 (patch)
tree478b43713319abfa4db40e394c44a87261144a01 /usr.sbin/ppp/pppctl
parent96eef4873443f17a48dc476e38e0ce7c3dfb7af1 (diff)
strlcat; Hans-Joerg.Hoexer@yerbouti.franken.de
Diffstat (limited to 'usr.sbin/ppp/pppctl')
-rw-r--r--usr.sbin/ppp/pppctl/pppctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/pppctl/pppctl.c b/usr.sbin/ppp/pppctl/pppctl.c
index 2a6e2282ad0..fd35621ecfc 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.10 2003/04/04 20:25:06 deraadt Exp $
+ * $Id: pppctl.c,v 1.11 2003/04/04 20:28:57 deraadt Exp $
*/
#include <sys/types.h>
@@ -452,7 +452,7 @@ main(int argc, char **argv)
*next = '\0';
strlcpy(Buffer, start, sizeof Buffer);
Buffer[sizeof(Buffer)-2] = '\0';
- strcat(Buffer, "\n");
+ strlcat(Buffer, "\n", sizeof Buffer);
if (verbose)
write(1, Buffer, strlen(Buffer));
write(fd, Buffer, strlen(Buffer));