From 113147fa304907ecbaf419893a718c3738976652 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 25 Jun 2015 18:53:55 -0400 Subject: [PATCH] use c array size for e atom init --- src/bin/e_atoms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_atoms.c b/src/bin/e_atoms.c index 94e63d8c8..3b021848c 100644 --- a/src/bin/e_atoms.c +++ b/src/bin/e_atoms.c @@ -33,9 +33,9 @@ e_atoms_init(void) "__E_ATOM_DESKTOP_FILE", "E_ZONE_GEOMETRY" }; - Ecore_X_Atom atoms[11]; + Ecore_X_Atom atoms[EINA_C_ARRAY_LENGTH(atom_names)]; - ecore_x_atoms_get(atom_names, 11, atoms); + ecore_x_atoms_get(atom_names, EINA_C_ARRAY_LENGTH(atom_names), atoms); E_ATOM_MANAGED = atoms[0]; E_ATOM_ZONE = atoms[1]; E_ATOM_DESK = atoms[2];