version 1.84, 2006/05/30 07:00:30 |
version 1.85, 2006/05/30 19:30:11 |
|
|
|
|
if (cvs_cmdop == CVS_OP_IMPORT) { |
if (cvs_cmdop == CVS_OP_IMPORT) { |
if (strlcpy(dst, import_repository, len) >= len) |
if (strlcpy(dst, import_repository, len) >= len) |
fatal("cvs_get_repository_name: overflow"); |
fatal("cvs_get_repository_name: truncation"); |
if (strlcat(dst, "/", len) >= len) |
if (strlcat(dst, "/", len) >= len) |
fatal("cvs_get_repository_name: overflow"); |
fatal("cvs_get_repository_name: truncation"); |
} |
|
|
|
if (strlcat(dst, dir, len) >= len) |
if (strcmp(dir, ".")) { |
fatal("cvs_get_repository_name: overflow"); |
if (strlcat(dst, dir, len) >= len) { |
|
fatal("cvs_get_repository_name: " |
|
"truncation"); |
|
} |
|
} |
|
} else { |
|
if (strlcat(dst, dir, len) >= len) |
|
fatal("cvs_get_repository_name: truncation"); |
|
} |
} |
} |
} |
} |
|
|