[BACK]Return to getcwd.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/getcwd.c between version 1.19 and 1.20

version 1.19, 1999/06/11 15:38:40 version 1.20, 1999/07/11 18:01:46
Line 412  getcwd(pt, size)
Line 412  getcwd(pt, size)
         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;

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

CVSweb <webmaster@jp.NetBSD.org>