summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/chap.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/chap.c')
-rw-r--r--usr.sbin/ppp/chap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/chap.c b/usr.sbin/ppp/chap.c
index c42baa1c869..3187b66b37b 100644
--- a/usr.sbin/ppp/chap.c
+++ b/usr.sbin/ppp/chap.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: chap.c,v 1.2 1997/12/07 23:55:06 brian Exp $
+ * $Id: chap.c,v 1.3 1997/12/24 09:30:24 brian Exp $
*
* TODO:
*/
@@ -230,10 +230,10 @@ RecvChapTalk(struct fsmheader *chp, struct mbuf *bp)
VarBaseDevice);
else {
struct utmp ut;
- memset(&ut, 0, sizeof(ut));
+ memset(&ut, 0, sizeof ut);
time(&ut.ut_time);
- strncpy(ut.ut_name, name, sizeof(ut.ut_name)-1);
- strncpy(ut.ut_line, VarBaseDevice, sizeof(ut.ut_line)-1);
+ strncpy(ut.ut_name, name, sizeof ut.ut_name - 1);
+ strncpy(ut.ut_line, VarBaseDevice, sizeof ut.ut_line - 1);
if (logout(ut.ut_line))
logwtmp(ut.ut_line, "", "");
login(&ut);