From f473dc3d12f4a1237fa020bff58fd44c3c6489de 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. --- calmwm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index 9bf2f25..d505426 100644 --- a/calmwm.h +++ b/calmwm.h @@ -409,11 +409,11 @@ void grab_label(struct client_ctx *); void xfree(void *); void *xmalloc(size_t); -void *xcalloc(size_t); +void *xcalloc(size_t, size_t); char *xstrdup(const char *); #define XMALLOC(p, t) ((p) = (t *)xmalloc(sizeof * (p))) -#define XCALLOC(p, t) ((p) = (t *)xcalloc(sizeof * (p))) +#define XCALLOC(p, t) ((p) = (t *)xcalloc(1, sizeof * (p))) void screen_init(void); struct screen_ctx *screen_fromroot(Window); -- cgit 1.4.1