|
|
| Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
| version 1.19, 1999/06/11 15:38:40 | version 1.20, 1999/07/11 18:01:46 | ||
|---|---|---|---|
|
|
||
| for (;;) { | for (;;) { | ||
| len = __getcwd(pt, bufsize); | len = __getcwd(pt, bufsize); | ||
| if ((len < 0) && (size == 0) && (errno == ERANGE)) { | if ((len < 0) && (size == 0) && (errno == ERANGE)) { | ||
| if (ptsize > (MAXPATHLEN*4)) | |||
| return NULL; | |||
| if ((pt = realloc(pt, ptsize *= 2)) == NULL) | if ((pt = realloc(pt, ptsize *= 2)) == NULL) | ||
| return NULL; | return NULL; | ||
| bufsize = ptsize; | bufsize = ptsize; |