summaryrefslogtreecommitdiff
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-14 01:42:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-14 01:42:10 +0000
commitf705e35e995aa3e22ae5e630f2622c7f9429b739 (patch)
tree2b7079012c22240e19370d70338b52521eb2fd5a /lib/libc/gen
parent05da867aefe71ae3e36fa91a48ea46484531e575 (diff)
oops
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/fstab.c4
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, ",")) {