[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.25.2.2 and 1.26

version 1.25.2.2, 2004/05/11 12:23:04 version 1.26, 2002/10/19 18:58:32
Line 170  loop:
Line 170  loop:
                 rootd = 0;                  rootd = 0;
   
         if (*wbuf) {          if (*wbuf) {
                 if (strlen(resolved) + strlen(wbuf) + (rootd ? 0 : 1) + 1 >                  if (strlen(resolved) + strlen(wbuf) + rootd + 1 > MAXPATHLEN) {
                     MAXPATHLEN) {  
                         errno = ENAMETOOLONG;                          errno = ENAMETOOLONG;
                         goto err1;                          goto err1;
                 }                  }

Legend:
Removed from v.1.25.2.2  
changed lines
  Added in v.1.26

CVSweb <webmaster@jp.NetBSD.org>