![]() ![]() | ![]() |
version 1.100, 2007/01/20 01:07:51 | version 1.101, 2007/01/20 16:52:39 | ||
---|---|---|---|
|
|
||
fatal("cvs_get_repository_name: truncation"); | fatal("cvs_get_repository_name: truncation"); | ||
if ((fp = fopen(fpath, "r")) != NULL) { | if ((fp = fopen(fpath, "r")) != NULL) { | ||
fgets(dst, len, fp); | if ((fgets(dst, len, fp)) == NULL) | ||
fatal("cvs_get_repository_name: bad repository file"); | |||
if ((s = strchr(dst, '\n')) != NULL) | if ((s = strchr(dst, '\n')) != NULL) | ||
*s = '\0'; | *s = '\0'; |