aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorDaniel Colascione2014-04-03 00:14:02 -0700
committerDaniel Colascione2014-04-03 00:14:02 -0700
commit705cf384bec23354ad22a5c48d3430a96ef70ca1 (patch)
tree1615876bc7abad32f5e41ea34c5cd1747466798a /src/xterm.c
parent3a9e7a49deea49088a773c321e52185e922748d6 (diff)
downloademacs-705cf384bec23354ad22a5c48d3430a96ef70ca1.tar.gz
emacs-705cf384bec23354ad22a5c48d3430a96ef70ca1.zip
Clean up array size calculations
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 8c4e78073dd..ee8fce047de 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10103,7 +10103,7 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
10103 }; 10103 };
10104 10104
10105 int i; 10105 int i;
10106 const int atom_count = sizeof (atom_refs) / sizeof (atom_refs[0]); 10106 const int atom_count = EARRAYSIZE (atom_refs);
10107 /* 1 for _XSETTINGS_SN */ 10107 /* 1 for _XSETTINGS_SN */
10108 const int total_atom_count = 1 + atom_count; 10108 const int total_atom_count = 1 + atom_count;
10109 Atom *atoms_return = xmalloc (total_atom_count * sizeof *atoms_return); 10109 Atom *atoms_return = xmalloc (total_atom_count * sizeof *atoms_return);