|
Line 0
Link Here
|
|
|
1 |
--- src/xgetcwd.cpp.orig Sun Dec 15 08:39:34 2002 |
| 2 |
+++ src/xgetcwd.cpp Sun Dec 15 08:39:36 2002 |
| 3 |
@@ -11,10 +11,10 @@ |
| 4 |
function returns a string */ |
| 5 |
std::string xgetcwd() |
| 6 |
{ |
| 7 |
- const unsigned int PATH_MAX = 100; |
| 8 |
- const unsigned int PATH_INC = PATH_MAX; |
| 9 |
+ const unsigned int PATHMAX = 100; |
| 10 |
+ const unsigned int PATH_INC = PATHMAX; |
| 11 |
|
| 12 |
- unsigned int path_max = PATH_MAX; |
| 13 |
+ unsigned int path_max = PATHMAX; |
| 14 |
path_max += 2; /* The getcwd docs say to do this. */ |
| 15 |
|
| 16 |
char* cwd = static_cast<char*>(malloc(path_max)); |