summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcsparse.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-12-01 21:58:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-12-01 21:58:47 +0000
commit63b1dc9d5d7158229afedc4c7c7db0d30a99c6b6 (patch)
treec3a9c79effa70af6f0f134fa99314869fe429e59 /usr.bin/cvs/rcsparse.c
parente0af19e7664629a09fce64e756b718edfed96da1 (diff)
An internal function called xrealloc() is actually a fail-hard
reallocarray()... so rename it.
Diffstat (limited to 'usr.bin/cvs/rcsparse.c')
-rw-r--r--usr.bin/cvs/rcsparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/rcsparse.c b/usr.bin/cvs/rcsparse.c
index b840845f29c..23f4d67a0ea 100644
--- a/usr.bin/cvs/rcsparse.c
+++ b/usr.bin/cvs/rcsparse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsparse.c,v 1.10 2014/11/22 18:01:09 deraadt Exp $ */
+/* $OpenBSD: rcsparse.c,v 1.11 2014/12/01 21:58:46 deraadt Exp $ */
/*
* Copyright (c) 2010 Tobias Stoeckmann <tobias@openbsd.org>
*
@@ -1202,7 +1202,7 @@ rcsparse_growbuf(RCSFILE *rfp)
{
struct rcs_pdata *pdp = (struct rcs_pdata *)rfp->rf_pdata;
- pdp->rp_buf = xrealloc(pdp->rp_buf, 1,
+ pdp->rp_buf = xreallocarray(pdp->rp_buf, 1,
pdp->rp_blen + RCS_BUFEXTSIZE);
pdp->rp_blen += RCS_BUFEXTSIZE;
pdp->rp_bufend = pdp->rp_buf + pdp->rp_blen - 1;