From 579efe92d1c484a6d8b9399b2abdb6440f9e92ea Mon Sep 17 00:00:00 2001 From: oga Date: Wed, 16 Apr 2008 13:38:09 +0000 Subject: Replace a few leftover calls to strdup and calloc with xstrdup and xcalloc respectively. ok okan. --- group.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'group.c') diff --git a/group.c b/group.c index 24cf337..406eaf1 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. * - * $Id: group.c,v 1.10 2008/04/16 13:35:37 oga Exp $ + * $Id: group.c,v 1.11 2008/04/16 13:38:09 oga Exp $ */ #include "headers.h" @@ -85,7 +85,7 @@ _group_show(struct group_ctx *gc) u_int i; int lastempty = -1; - winlist = (Window *) xcalloc(sizeof(*winlist) * (gc->highstack + 1)); + winlist = (Window *) xcalloc(sizeof(*winlist), (gc->highstack + 1)); /* * Invert the stacking order as XRestackWindows() expects them -- cgit v1.2.3-2-gb3c3