From 9bb42946a8791addade91b9e9379f94b144429f7 Mon Sep 17 00:00:00 2001 From: okan Date: Sat, 28 Mar 2015 23:12:47 +0000 Subject: Introduce a xreallocarray and convert a few xcalloc instances that do not require zero'ing. --- group.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'group.c') diff --git a/group.c b/group.c index a5f4859..d18ece8 100644 --- a/group.c +++ b/group.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: group.c,v 1.110 2015/01/19 14:54:16 okan Exp $ + * $OpenBSD: group.c,v 1.111 2015/03/28 23:12:47 okan Exp $ */ #include @@ -91,7 +91,7 @@ group_restack(struct group_ctx *gc) if (cc->stackingorder > highstack) highstack = cc->stackingorder; } - winlist = xcalloc((highstack + 1), sizeof(*winlist)); + winlist = xreallocarray(NULL, (highstack + 1), sizeof(*winlist)); /* Invert the stacking order for XRestackWindows(). */ TAILQ_FOREACH(cc, &gc->clientq, group_entry) { -- cgit v1.2.3-2-gb3c3