Return to proto.c CVS log | Up to [local] / src / usr.bin / cvs |
version 1.41, 2005/03/04 18:36:57 | version 1.42, 2005/03/13 19:52:26 | ||
---|---|---|---|
|
|
||
fputs(cvs_proto_buf, cvs_server_outlog); | fputs(cvs_proto_buf, cvs_server_outlog); | ||
if ((len = strlen(cvs_proto_buf)) != 0) { | if ((len = strlen(cvs_proto_buf)) != 0) { | ||
if (cvs_proto_buf[len - 1] != '\n') { | /* if len - 1 != '\n' the line is truncated */ | ||
/* truncated line */ | if (cvs_proto_buf[len - 1] == '\n') { | ||
} else | |||
cvs_proto_buf[--len] = '\0'; | cvs_proto_buf[--len] = '\0'; | ||
} | } | ||