Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pwd.c
diff options
context:
space:
mode:
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 893ed1e15..2ad019d50 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");