diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-11-22 18:01:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-11-22 18:01:10 +0000 |
commit | a7f8542cc216018ee8e319f31d7a830940ee85ba (patch) | |
tree | a57052e9a3c3eb0a4d761a904cc34033251f220b /usr.bin | |
parent | aa3b6d07c8d282936d829c98280316484de11601 (diff) |
not compiled before commit
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/rcsparse.c | 4 | ||||
-rw-r--r-- | usr.bin/rcs/rcsparse.c | 4 |
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; |