summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-08-08 15:38:53 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-08-08 15:38:53 +0000
commitf8b7fe21347338e1cfe540139771e2f31f8b5058 (patch)
tree1a305aa4db52475ce8b5876226a1728669877e69 /usr.sbin
parent49a167c8efbd5c50611c104f5908cd9845ce105b (diff)
length arg goes last.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sliplogin/sliplogin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sliplogin/sliplogin.c b/usr.sbin/sliplogin/sliplogin.c
index 7275d3b7718..d7bd0c7782f 100644
--- a/usr.sbin/sliplogin/sliplogin.c
+++ b/usr.sbin/sliplogin/sliplogin.c
@@ -39,7 +39,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)sliplogin.c 5.6 (Berkeley) 3/2/91";*/
-static char rcsid[] = "$Id: sliplogin.c,v 1.4 1996/08/05 12:07:56 deraadt Exp $";
+static char rcsid[] = "$Id: sliplogin.c,v 1.5 1996/08/08 15:38:52 millert Exp $";
#endif /* not lint */
/*
@@ -121,7 +121,7 @@ findid(name)
char user[16], *p;
int i, j, n;
- (void)strncpy(loginname, sizeof loginname, name);
+ (void)strncpy(loginname, name, sizeof loginname);
if ((fp = fopen(_PATH_ACCESS, "r")) == NULL) {
syslog(LOG_ERR, "%s: %m\n", _PATH_ACCESS);
err(1, "%s", _PATH_ACCESS);