summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/rcsparse.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-12-01 21:58:46 +0000
committerderaadt <deraadt@openbsd.org>2014-12-01 21:58:46 +0000
commitcaa2ffb0b03850db17af0f8c10b96ed868191c3f (patch)
treee4a3ca634b548c220db17e0f4f17351d7a2dd572 /usr.bin/cvs/rcsparse.c
parentreconvert (rereconvert?) to memcpy except in the one case where memmove (diff)
downloadwireguard-openbsd-caa2ffb0b03850db17af0f8c10b96ed868191c3f.tar.xz
wireguard-openbsd-caa2ffb0b03850db17af0f8c10b96ed868191c3f.zip
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;