summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-12-28 21:22:46 +0000
committerderaadt <deraadt@openbsd.org>1998-12-28 21:22:46 +0000
commitb3c572a5ea86561aa14bdf12840ac7a74dcdce0b (patch)
treeb4d27a3074c6741f4f5e3bd5ad2cd896729c8910 /usr.sbin/mtree
parentsync (diff)
downloadwireguard-openbsd-b3c572a5ea86561aa14bdf12840ac7a74dcdce0b.tar.xz
wireguard-openbsd-b3c572a5ea86561aa14bdf12840ac7a74dcdce0b.zip
use getcwd(3)
Diffstat (limited to 'usr.sbin/mtree')
-rw-r--r--usr.sbin/mtree/mtree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/mtree/mtree.c b/usr.sbin/mtree/mtree.c
index c74eeff25a5..7c2df88329c 100644
--- a/usr.sbin/mtree/mtree.c
+++ b/usr.sbin/mtree/mtree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mtree.c,v 1.8 1998/08/20 20:11:41 marc Exp $ */
+/* $OpenBSD: mtree.c,v 1.9 1998/12/28 21:22:46 deraadt Exp $ */
/* $NetBSD: mtree.c,v 1.7 1996/09/05 23:29:22 thorpej Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mtree.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: mtree.c,v 1.8 1998/08/20 20:11:41 marc Exp $";
+static char rcsid[] = "$OpenBSD: mtree.c,v 1.9 1998/12/28 21:22:46 deraadt Exp $";
#endif
#endif /* not lint */
@@ -151,7 +151,7 @@ main(argc, argv)
if (dir && chdir(dir))
error("%s: %s", dir, strerror(errno));
- if ((cflag || sflag) && !getwd(fullpath))
+ if ((cflag || sflag) && !getcwd(fullpath, sizeof fullpath))
error("%s", fullpath);
if (cflag) {