summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r--usr.sbin/ppp/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 75d78a5..cc0f7a1 100644
--- a/usr.sbin/ppp/main.c
+++ b/usr.sbin/ppp/main.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: main.c,v 1.25 1996/12/19 00:41:42 nate Exp $
+ * $Id: main.c,v 1.26 1996/12/22 17:29:31 jkh Exp $
*
* TODO:
* o Add commands for traffic summary, version display, etc.
@@ -448,7 +448,7 @@ char **argv;
snprintf(pid_filename, sizeof (pid_filename), "%s/ppp.tun%d.pid",
_PATH_VARRUN, tunno);
unlink(pid_filename);
- sprintf(pid, "%d\n", (int)getpid());
+ snprintf(pid, sizeof(pid), "%d\n", (int)getpid());
if ((fd = open(pid_filename, O_RDWR|O_CREAT, 0666)) != -1)
{
OpenPOWER on IntegriCloud