diff options
Diffstat (limited to 'sbin/mount_ados/mount_ados.c')
-rw-r--r-- | sbin/mount_ados/mount_ados.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/mount_ados/mount_ados.c b/sbin/mount_ados/mount_ados.c index 9bee15d5bb7..be8da3859e8 100644 --- a/sbin/mount_ados/mount_ados.c +++ b/sbin/mount_ados/mount_ados.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount_ados.c,v 1.10 2003/06/11 06:22:13 deraadt Exp $ */ +/* $OpenBSD: mount_ados.c,v 1.11 2003/07/02 22:38:53 avsm Exp $ */ /* $NetBSD: mount_ados.c,v 1.5 1996/04/13 01:30:59 jtc Exp $ */ /* @@ -32,7 +32,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: mount_ados.c,v 1.10 2003/06/11 06:22:13 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: mount_ados.c,v 1.11 2003/07/02 22:38:53 avsm Exp $"; #endif /* not lint */ #include <sys/cdefs.h> @@ -105,8 +105,8 @@ main(int argc, char *argv[]) warnx("\"%s\" is a relative path.", dir); if (getcwd(ndir, sizeof(ndir)) == NULL) err(1, "getcwd"); - strncat(ndir, "/", sizeof(ndir) - strlen(ndir)); - strncat(ndir, dir, sizeof(ndir) - strlen(ndir)); + strlcat(ndir, "/", sizeof(ndir)); + strlcat(ndir, dir, sizeof(ndir)); dir = ndir; warnx("using \"%s\" instead.", dir); } |