[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.24.4.1 and 1.24.4.2

version 1.24.4.1, 2002/04/17 11:34:54 version 1.24.4.2, 2003/08/05 09:31:58
Line 170  loop:
Line 170  loop:
                 rootd = 0;                  rootd = 0;
   
         if (*wbuf) {          if (*wbuf) {
                 if (strlen(resolved) + strlen(wbuf) + rootd + 1 > MAXPATHLEN) {                  if (strlen(resolved) + strlen(wbuf) + (rootd ? 0 : 1) + 1 >
                       MAXPATHLEN) {
                         errno = ENAMETOOLONG;                          errno = ENAMETOOLONG;
                         goto err1;                          goto err1;
                 }                  }

Legend:
Removed from v.1.24.4.1  
changed lines
  Added in v.1.24.4.2

CVSweb <webmaster@jp.NetBSD.org>