From 371275cabfe7ee71db4f4e23b9a5d966b335d3bc Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 29 Apr 2015 04:00:25 +0000 Subject: Change internal xrealloc() to a idiom-following xreallocarray(). This loses a "new size is 0" failure case. Probably not relevant; and since we develop this in OpenBSD, we'll catch that before someone else imports this... ok millert --- usr.bin/diff/xmalloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/diff/xmalloc.h') diff --git a/usr.bin/diff/xmalloc.h b/usr.bin/diff/xmalloc.h index f348ba23c33..d4aa769f552 100644 --- a/usr.bin/diff/xmalloc.h +++ b/usr.bin/diff/xmalloc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: xmalloc.h,v 1.2 2009/06/07 08:39:13 ray Exp $ */ +/* $OpenBSD: xmalloc.h,v 1.3 2015/04/29 04:00:25 deraadt Exp $ */ /* * Author: Tatu Ylonen @@ -21,7 +21,7 @@ void *xmalloc(size_t); void *xcalloc(size_t, size_t); -void *xrealloc(void *, size_t, size_t); +void *xreallocarray(void *, size_t, size_t); void xfree(void *); char *xstrdup(const char *); int xasprintf(char **, const char *, ...) -- cgit v1.2.3-59-g8ed1b