diff options
author | 1997-06-14 01:42:09 +0000 | |
---|---|---|
committer | 1997-06-14 01:42:09 +0000 | |
commit | 88a42377aa74073f8f77d6c8c264544d654f6d70 (patch) | |
tree | d953ecdea02d0947872be4c8def7254bb739076a /lib/libc/gen/fstab.c | |
parent | PD tsearch as reqd by xpg; by esr (diff) | |
download | wireguard-openbsd-88a42377aa74073f8f77d6c8c264544d654f6d70.tar.xz wireguard-openbsd-88a42377aa74073f8f77d6c8c264544d654f6d70.zip |
oops
Diffstat (limited to 'lib/libc/gen/fstab.c')
-rw-r--r-- | lib/libc/gen/fstab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/fstab.c b/lib/libc/gen/fstab.c index 9bb4a63e8a1..d9d87de270d 100644 --- a/lib/libc/gen/fstab.c +++ b/lib/libc/gen/fstab.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: fstab.c,v 1.4 1997/06/13 13:01:29 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: fstab.c,v 1.5 1997/06/14 01:42:09 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -102,7 +102,7 @@ fstabscan() if ((cp = strtok((char *)NULL, " \t\n")) != NULL) _fs_fstab.fs_passno = atoi(cp); } - stnrcpy(subline, _fs_fstab.fs_mntops, sizeof subline-1); + strncpy(subline, _fs_fstab.fs_mntops, sizeof subline-1); subline[sizeof subline-1] = '\0'; for (typexx = 0, cp = strtok(subline, ","); cp; cp = strtok((char *)NULL, ",")) { |