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/getlog.c | |
parent | e0af19e7664629a09fce64e756b718edfed96da1 (diff) |
An internal function called xrealloc() is actually a fail-hard
reallocarray()... so rename it.
Diffstat (limited to 'usr.bin/cvs/getlog.c')
-rw-r--r-- | usr.bin/cvs/getlog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/getlog.c b/usr.bin/cvs/getlog.c index 4911c1bf6af..461cd32c5bd 100644 --- a/usr.bin/cvs/getlog.c +++ b/usr.bin/cvs/getlog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getlog.c,v 1.97 2014/01/08 13:23:55 okan Exp $ */ +/* $OpenBSD: getlog.c,v 1.98 2014/12/01 21:58:46 deraadt Exp $ */ /* * Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org> * Copyright (c) 2006 Joris Vink <joris@openbsd.org> @@ -413,7 +413,7 @@ push_date(char *dest, const char *src) len = strlen(dest) + strlen(src) + 2; dest[strlen(dest)] = ';'; - dest = xrealloc(dest, len, 1); + dest = xreallocarray(dest, len, 1); strlcat(dest, src, len); return (dest); } |