correct arguments and drop the cast.

sanity check by oga@nicotinebsd
This commit is contained in:
okan 2014-01-24 15:08:06 +00:00
parent 53e77acafc
commit c7e2ee5dd5

View File

@ -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