From 3af57389ca48e1e8600f830f5b0e66b036c198c5 Mon Sep 17 00:00:00 2001 From: tilman Date: Fri, 11 May 2007 17:31:49 +0000 Subject: [PATCH] fixed atom retrieval. atom names are NOT NUL-terminated. SVN revision: 29950 --- legacy/ecore/src/lib/ecore_x/ecore_xcb_atom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/ecore/src/lib/ecore_x/ecore_xcb_atom.c b/legacy/ecore/src/lib/ecore_x/ecore_xcb_atom.c index ea30ab8956..9f6f9ca55b 100644 --- a/legacy/ecore/src/lib/ecore_x/ecore_xcb_atom.c +++ b/legacy/ecore/src/lib/ecore_x/ecore_xcb_atom.c @@ -226,7 +226,7 @@ EAPI Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_CLIPBOARD = 0; the second one gets the replies and set the atoms. */ #define FETCH_ATOM(s) \ - atom_cookies[i] = xcb_intern_atom(_ecore_xcb_conn, 0, sizeof(s), s); \ + atom_cookies[i] = xcb_intern_atom(_ecore_xcb_conn, 0, strlen(s), s); \ i++ void