summaryrefslogtreecommitdiff
path: root/pwd.c
diff options
context:
space:
mode:
authorEric Andersen1999-10-12 22:26:06 +0000
committerEric Andersen1999-10-12 22:26:06 +0000
commit3cf52d19581b2077480e7d2e63010baa1f5399c1 (patch)
treed91b0cb332ebc976126e36a394655dde7a15d8b1 /pwd.c
parent2ce1edcf544ac675e6762c9861a6b918401ea716 (diff)
downloadbusybox-3cf52d19581b2077480e7d2e63010baa1f5399c1.zip
busybox-3cf52d19581b2077480e7d2e63010baa1f5399c1.tar.gz
More stuff...
Diffstat (limited to 'pwd.c')
-rw-r--r--pwd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pwd.c b/pwd.c
index 893ed1e..2ad019d 100644
--- a/pwd.c
+++ b/pwd.c
@@ -1,12 +1,13 @@
#include "internal.h"
#include <stdio.h>
+#include <dirent.h>
const char pwd_usage[] = "Print the current directory.\n";
extern int
pwd_main(int argc, char * * argv)
{
- char buf[1024];
+ char buf[NAME_MAX];
if ( getcwd(buf, sizeof(buf)) == NULL ) {
perror("get working directory");