summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/buf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/buf.c b/usr.bin/cvs/buf.c
index d0c60d69202..33b503d2014 100644
--- a/usr.bin/cvs/buf.c
+++ b/usr.bin/cvs/buf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buf.c,v 1.2 2004/07/13 22:21:11 jfb Exp $ */
+/* $OpenBSD: buf.c,v 1.3 2004/09/27 13:29:27 joris Exp $ */
/*
* Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -88,7 +88,7 @@ cvs_buf_alloc(size_t len, u_int flags)
free(b);
return (NULL);
}
- memset(b->cb_buf, 0, sizeof(b->cb_buf));
+ memset(b->cb_buf, 0, len);
b->cb_flags = flags;
b->cb_size = len;