diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-28 20:48:41 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-28 20:48:41 +0000 |
commit | b9690c40ba1c5e46b874fba81a45016b93ca0c92 (patch) | |
tree | d5e4b0ddec3b0e35b9d150ff2309ca0a8e417697 /usr.bin/ftp | |
parent | bde0cdbcaab0d81ae4728f4b41ebe9629b76577d (diff) |
getcwd() not getwd()
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r-- | usr.bin/ftp/cmds.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ftp/cmds.c b/usr.bin/ftp/cmds.c index 1f14aff0b29..dbf952b06de 100644 --- a/usr.bin/ftp/cmds.c +++ b/usr.bin/ftp/cmds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmds.c,v 1.10 1997/01/25 21:42:27 deraadt Exp $ */ +/* $OpenBSD: cmds.c,v 1.11 1997/01/28 20:48:40 millert Exp $ */ /* $NetBSD: cmds.c,v 1.8 1995/09/08 01:06:05 tls Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94"; #else -static char rcsid[] = "$OpenBSD: cmds.c,v 1.10 1997/01/25 21:42:27 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: cmds.c,v 1.11 1997/01/28 20:48:40 millert Exp $"; #endif #endif /* not lint */ @@ -1133,10 +1133,10 @@ lcd(argc, argv) code = -1; return; } - if (getwd(buf) != NULL) + if (getcwd(buf, sizeof(buf)) != NULL) printf("Local directory now %s\n", buf); else - warnx("getwd: %s", buf); + warnx("getcwd: %s", buf); code = 0; } |