From 3cf52d19581b2077480e7d2e63010baa1f5399c1 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 12 Oct 1999 22:26:06 +0000 Subject: More stuff... --- coreutils/pwd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'coreutils/pwd.c') diff --git a/coreutils/pwd.c b/coreutils/pwd.c index 893ed1e15..2ad019d50 100644 --- a/coreutils/pwd.c +++ b/coreutils/pwd.c @@ -1,12 +1,13 @@ #include "internal.h" #include +#include 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"); -- cgit v1.2.3