diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-12-01 21:58:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-12-01 21:58:47 +0000 |
commit | 63b1dc9d5d7158229afedc4c7c7db0d30a99c6b6 (patch) | |
tree | c3a9c79effa70af6f0f134fa99314869fe429e59 /usr.bin/cvs/rcsparse.c | |
parent | e0af19e7664629a09fce64e756b718edfed96da1 (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.c | 4 |
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; |