summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/passwdauth.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/passwdauth.c')
-rw-r--r--usr.sbin/ppp/passwdauth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/passwdauth.c b/usr.sbin/ppp/passwdauth.c
index 5413d43..5de62f7 100644
--- a/usr.sbin/ppp/passwdauth.c
+++ b/usr.sbin/ppp/passwdauth.c
@@ -96,7 +96,7 @@ char *name, *key;
else
(void)strncpy(utmp.ut_line, dstsystem, sizeof(utmp.ut_line));
- (void)strcpy(utmp.ut_host, "auto-ppp" );
+ (void)strncpy(utmp.ut_host, "auto-ppp",sizeof(utmp.ut_host));
login(&utmp);
(void)setlogin( pwd->pw_name );
OpenPOWER on IntegriCloud