diff options
author | etheisen <etheisen@cvs.openbsd.org> | 1996-08-07 14:08:53 +0000 |
---|---|---|
committer | etheisen <etheisen@cvs.openbsd.org> | 1996-08-07 14:08:53 +0000 |
commit | 7de9eff104e6d6de39cdebb8065a679c44dbc532 (patch) | |
tree | e441057cb24f7acb25a2aef70f0783cbca208bc4 /usr.bin/quota | |
parent | a23469c67b8c4d93ed78169b3ba606d11aad7b07 (diff) |
strncpy() dyslexia on last commit.
Diffstat (limited to 'usr.bin/quota')
-rw-r--r-- | usr.bin/quota/quota.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c index 927100b901f..008bf2364de 100644 --- a/usr.bin/quota/quota.c +++ b/usr.bin/quota/quota.c @@ -1,4 +1,4 @@ -/* $OpenBSD: quota.c,v 1.6 1996/08/06 18:38:48 deraadt Exp $ */ +/* $OpenBSD: quota.c,v 1.7 1996/08/07 14:08:52 etheisen Exp $ */ /* * Copyright (c) 1980, 1990, 1993 @@ -44,7 +44,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)quota.c 8.1 (Berkeley) 6/6/93";*/ -static char rcsid[] = "$OpenBSD: quota.c,v 1.6 1996/08/06 18:38:48 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: quota.c,v 1.7 1996/08/07 14:08:52 etheisen Exp $"; #endif /* not lint */ /* @@ -505,7 +505,7 @@ ufshasquota(fs, type, qfnamep) qfextension[GRPQUOTA], qfname); initname = 1; } - strncpy(buf, sizeof buf, fs->fs_mntops); + strncpy(buf, fs->fs_mntops, sizeof buf); for (opt = strtok(buf, ","); opt; opt = strtok(NULL, ",")) { if (cp = index(opt, '=')) *cp++ = '\0'; |