diff options
author | Roland McGrath <roland@gnu.org> | 1992-04-29 23:41:57 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1992-04-29 23:41:57 +0000 |
commit | 323d28813168990d53818752376e4b23aa764c53 (patch) | |
tree | 04d17e1dfda566dbc7ce84fea40bfe719afa6413 /io | |
parent | d142e295c2e60ed436a8f3ffc3dbea646f1f1321 (diff) |
entered into RCS
Diffstat (limited to 'io')
-rw-r--r-- | io/getwd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/io/getwd.c b/io/getwd.c index c23bff3b9e..fdda1cac22 100644 --- a/io/getwd.c +++ b/io/getwd.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -34,6 +34,9 @@ DEFUN(getwd, (buf), char *buf) return NULL; } +#ifndef PATH_MAX +#define PATH_MAX 1024 /* Arbitrary; this function is unreliable. */ +#endif if (getcwd (buf, PATH_MAX) == NULL) { (void) strncpy (buf, strerror (errno), PATH_MAX); |