diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-16 17:11:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-16 17:11:44 +0000 |
commit | a30b546dca5879eb3e1d69bd0f307e6b85a62050 (patch) | |
tree | 78db3106ae7e7571e668906e4de1e2d24d50c332 /sbin/mount_ados | |
parent | 7cd754d04eab0796fee90fb5d2fc6d2691799fce (diff) |
does noone know how to use strncat correctly?
Diffstat (limited to 'sbin/mount_ados')
-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 f68882feff7..52105cb3135 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.3 1996/06/23 14:31:14 deraadt Exp $ */ +/* $OpenBSD: mount_ados.c,v 1.4 1996/12/16 17:11:36 deraadt 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.3 1996/06/23 14:31:14 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: mount_ados.c,v 1.4 1996/12/16 17:11:36 deraadt Exp $"; #endif /* not lint */ #include <sys/cdefs.h> @@ -106,8 +106,8 @@ main(argc, argv) warnx("\"%s\" is a relative path.", dir); if (getcwd(ndir, sizeof(ndir)) == NULL) err(1, "getcwd"); - strncat(ndir, "/", sizeof(ndir) - strlen(ndir) - 1); - strncat(ndir, dir, sizeof(ndir) - strlen(ndir) - 1); + strncat(ndir, "/", sizeof(ndir) - strlen(ndir)); + strncat(ndir, dir, sizeof(ndir) - strlen(ndir)); dir = ndir; warnx("using \"%s\" instead.", dir); } |