From c7e2ee5dd567888f30028250a7cdbadecdad4d73 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 24 Jan 2014 15:08:06 +0000 Subject: [PATCH] correct arguments and drop the cast. sanity check by oga@nicotinebsd --- group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/group.c b/group.c index 929f9c2..70bd8b6 100644 --- a/group.c +++ b/group.c @@ -105,7 +105,7 @@ group_show(struct screen_ctx *sc, struct group_ctx *gc) if (cc->stackingorder > gc->highstack) gc->highstack = cc->stackingorder; } - winlist = (Window *) xcalloc(sizeof(*winlist), (gc->highstack + 1)); + winlist = xcalloc((gc->highstack + 1), sizeof(*winlist)); /* * Invert the stacking order as XRestackWindows() expects them