aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-06-25 18:53:55 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-06-25 20:04:31 -0400
commit113147fa304907ecbaf419893a718c3738976652 (patch)
tree9ce4f9df78aa40a6a27d4cde52a0e299a1b00852
parentremove wayland-clients configure option (diff)
downloadenlightenment-113147fa304907ecbaf419893a718c3738976652.tar.gz
use c array size for e atom init
-rw-r--r--src/bin/e_atoms.c4
1 files 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];