Return to getcwd.c CVS log | 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. |
version 1.25.2.2, 2004/05/11 12:23:04 | version 1.26, 2002/10/19 18:58:32 | ||
---|---|---|---|
|
|
||
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; | ||
} | } |