summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/buf.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/buf.c
parente0af19e7664629a09fce64e756b718edfed96da1 (diff)
An internal function called xrealloc() is actually a fail-hard
reallocarray()... so rename it.
Diffstat (limited to 'usr.bin/cvs/buf.c')
-rw-r--r--usr.bin/cvs/buf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/buf.c b/usr.bin/cvs/buf.c
index a21676c9848..e539b5c7369 100644
--- a/usr.bin/cvs/buf.c
+++ b/usr.bin/cvs/buf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buf.c,v 1.80 2010/09/08 20:49:11 nicm Exp $ */
+/* $OpenBSD: buf.c,v 1.81 2014/12/01 21:58:46 deraadt Exp $ */
/*
* Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -286,6 +286,6 @@ buf_differ(const BUF *b1, const BUF *b2)
static void
buf_grow(BUF *b, size_t len)
{
- b->cb_buf = xrealloc(b->cb_buf, 1, b->cb_size + len);
+ b->cb_buf = xreallocarray(b->cb_buf, 1, b->cb_size + len);
b->cb_size += len;
}