summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/proto.c
diff options
context:
space:
mode:
authorMoritz Jodeit <moritz@cvs.openbsd.org>2005-07-26 20:58:45 +0000
committerMoritz Jodeit <moritz@cvs.openbsd.org>2005-07-26 20:58:45 +0000
commitb39a6cb02b0a6a22c9e0f5e64ccaf636f24976ea (patch)
treebb2e6808107cab307b48e19b9376aab26080ccc4 /usr.bin/cvs/proto.c
parentb4468ec9971ac7784ec12e3ec39c8bd0057d2122 (diff)
- fix SIZE_LEFT macro for the cb_cur > cb_buf case.
- make cvs_buf_empty() really clean the buffer. - fix cvs_buf_copy() for the off > 0 case. - some more minor buf code cleanup. ok joris@
Diffstat (limited to 'usr.bin/cvs/proto.c')
-rw-r--r--usr.bin/cvs/proto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/proto.c b/usr.bin/cvs/proto.c
index 4bf5025fced..73abc47ade4 100644
--- a/usr.bin/cvs/proto.c
+++ b/usr.bin/cvs/proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proto.c,v 1.69 2005/07/25 20:26:57 moritz Exp $ */
+/* $OpenBSD: proto.c,v 1.70 2005/07/26 20:58:44 moritz Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -442,7 +442,7 @@ cvs_req_getvalid(void)
return (NULL);
}
- len = cvs_buf_size(buf);
+ len = cvs_buf_len(buf);
vrstr = (char *)malloc(len);
if (vrstr == NULL) {
cvs_buf_free(buf);
@@ -525,7 +525,7 @@ cvs_resp_getvalid(void)
return (NULL);
}
- len = cvs_buf_size(buf);
+ len = cvs_buf_len(buf);
vrstr = (char *)malloc(len);
if (vrstr == NULL) {
cvs_buf_free(buf);