From 2a4971b725c4e0f3b8420bb7022daeca9bea07c3 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 29 May 2008 14:15:03 +0200 Subject: [PATCH] [xutil] Fix strdup() usage Signed-off-by: Julien Danjou --- common/xutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xutil.c b/common/xutil.c index 1d617b7c..c129a1c4 100644 --- a/common/xutil.c +++ b/common/xutil.c @@ -171,7 +171,7 @@ xutil_intern_atom(xcb_connection_t *c, xutil_atom_cache_t **atoms, xutil_atom_cache_t *atom_next; int cmp_cache; - atom_req.name = strdup(name); + atom_req.name = a_strdup(name); /* Check if this atom is present in the cache ordered * linked-list */