summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-11-22 18:01:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-11-22 18:01:10 +0000
commita7f8542cc216018ee8e319f31d7a830940ee85ba (patch)
treea57052e9a3c3eb0a4d761a904cc34033251f220b /usr.bin
parentaa3b6d07c8d282936d829c98280316484de11601 (diff)
not compiled before commit
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/rcsparse.c4
-rw-r--r--usr.bin/rcs/rcsparse.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/cvs/rcsparse.c b/usr.bin/cvs/rcsparse.c
index a8eca4de26a..b840845f29c 100644
--- a/usr.bin/cvs/rcsparse.c
+++ b/usr.bin/cvs/rcsparse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsparse.c,v 1.9 2014/11/22 15:51:40 tobias Exp $ */
+/* $OpenBSD: rcsparse.c,v 1.10 2014/11/22 18:01:09 deraadt Exp $ */
/*
* Copyright (c) 2010 Tobias Stoeckmann <tobias@openbsd.org>
*
@@ -224,7 +224,7 @@ rcsparse_init(RCSFILE *rfp)
if (rfp->rf_flags & RCS_PARSED)
return (0);
- pdp = xcalloc(sizeof(*pdp));
+ pdp = xcalloc(1, sizeof(*pdp));
pdp->rp_buf = xmalloc(RCS_BUFSIZE);
pdp->rp_blen = RCS_BUFSIZE;
pdp->rp_bufend = pdp->rp_buf + pdp->rp_blen - 1;
diff --git a/usr.bin/rcs/rcsparse.c b/usr.bin/rcs/rcsparse.c
index f0189a436c7..e699e6c9703 100644
--- a/usr.bin/rcs/rcsparse.c
+++ b/usr.bin/rcs/rcsparse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsparse.c,v 1.12 2014/11/22 15:51:40 tobias Exp $ */
+/* $OpenBSD: rcsparse.c,v 1.13 2014/11/22 18:01:09 deraadt Exp $ */
/*
* Copyright (c) 2010 Tobias Stoeckmann <tobias@openbsd.org>
*
@@ -223,7 +223,7 @@ rcsparse_init(RCSFILE *rfp)
if (rfp->rf_flags & RCS_PARSED)
return (0);
- pdp = xcalloc(sizeof(*pdp));
+ pdp = xcalloc(1, sizeof(*pdp));
pdp->rp_buf = xmalloc(RCS_BUFSIZE);
pdp->rp_blen = RCS_BUFSIZE;
pdp->rp_bufend = pdp->rp_buf + pdp->rp_blen - 1;