diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2006-02-05 18:21:45 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2006-02-05 18:21:45 +0000 |
commit | 4558eea7c087e144aa576f34b461299c0b3f7538 (patch) | |
tree | d6295b8da911e890751a93f9a155ffec27399de2 | |
parent | 37614c35ab7bbb45cd7b9741a8efd34187c6efb2 (diff) |
unbreak remote protocol which got broken in revision 1.88.
-rw-r--r-- | usr.bin/cvs/proto.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/proto.c b/usr.bin/cvs/proto.c index b357ae84248..201413b42e0 100644 --- a/usr.bin/cvs/proto.c +++ b/usr.bin/cvs/proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proto.c,v 1.88 2006/01/26 09:05:31 xsa Exp $ */ +/* $OpenBSD: proto.c,v 1.89 2006/02/05 18:21:44 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -610,6 +610,8 @@ cvs_sendreq(struct cvsroot *root, u_int rid, const char *arg) strlcat(cvs_proto_buf, (arg == NULL) ? "" : " ", sizeof(cvs_proto_buf)) >= sizeof(cvs_proto_buf) || strlcat(cvs_proto_buf, (arg == NULL) ? "" : arg, + sizeof(cvs_proto_buf)) >= sizeof(cvs_proto_buf) || + strlcat(cvs_proto_buf, "\n", sizeof(cvs_proto_buf)) >= sizeof(cvs_proto_buf)) fatal("cvs_sendreq: overflow when creating proto buffer"); |