version 1.28, 2006/01/02 08:11:56 |
version 1.29, 2006/01/25 08:15:05 |
|
|
return cvsroot_parse(cvs_rootstr); |
return cvsroot_parse(cvs_rootstr); |
|
|
l = snprintf(rootpath, sizeof(rootpath), "%s/" CVS_PATH_ROOTSPEC, dir); |
l = snprintf(rootpath, sizeof(rootpath), "%s/" CVS_PATH_ROOTSPEC, dir); |
if (l == -1 || l >= (int)sizeof(rootpath)) { |
if (strlcpy(rootpath, dir, sizeof(rootpath)) >= sizeof(rootpath) || |
|
strlcat(rootpath, "/", sizeof(rootpath)) >= sizeof(rootpath) || |
|
strlcat(rootpath, CVS_PATH_ROOTSPEC, |
|
sizeof(rootpath)) >= sizeof(rootpath)) { |
errno = ENAMETOOLONG; |
errno = ENAMETOOLONG; |
fatal("cvsroot_get: %s: %s", rootpath, strerror(errno)); |
fatal("cvsroot_get: %s: %s", rootpath, strerror(errno)); |
} |
} |