summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
authoroga <oga>2008-04-16 13:38:09 +0000
committeroga <oga>2008-04-16 13:38:09 +0000
commitf473dc3d12f4a1237fa020bff58fd44c3c6489de (patch)
tree7584efc245cd1a99b292a7fe07f3dbcf60eab7fc /group.c
parentf67772be650718b2e408a26ef08e1946a0abf1ab (diff)
downloadcwm-f473dc3d12f4a1237fa020bff58fd44c3c6489de.tar.gz
cwm-f473dc3d12f4a1237fa020bff58fd44c3c6489de.tar.xz
cwm-f473dc3d12f4a1237fa020bff58fd44c3c6489de.zip
Replace a few leftover calls to strdup and calloc with xstrdup and xcalloc
respectively.

ok okan.
Diffstat (limited to 'group.c')
-rw-r--r--group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/group.c b/group.c
index 59aec57..9f01b7e 100644
--- a/group.c
+++ b/group.c
@@ -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