diff options
Diffstat (limited to 'usr.bin/rcs/rcsparse.c')
-rw-r--r-- | usr.bin/rcs/rcsparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |