Commit Graph

4 Commits

Author SHA1 Message Date
Paul Eggert
0e79725f53 Fix typo in local var; from Jim Meyering. 2001-09-03 04:17:04 +00:00
Paul Eggert
9f95e73642 (xgetcwd): Reorganize to avoid some duplication.
Use an initial, malloc'd, buffer of length 128 rather than
a statically allocated one of length 1024.
2001-08-31 11:36:54 +00:00
Paul Eggert
07c3d5fe32 ("pathmax.h"): Do not include; no longer needed.
(<stdlib.h>, <unistd.h>): Include if available.
("xalloc.h"): Include.
(xmalloc, xstrdup, free): Remove decls; no longer needed.
(xgetcwd): Don't assume sizes fit in 'unsigned'.
Check for overflow when path size gets too large.
Simplify failure code.
2001-08-29 06:36:20 +00:00
Paul Eggert
f17ce7b6ae Initial revision 2001-08-23 17:25:11 +00:00