summaryrefslogtreecommitdiff
path: root/src/unexcw.c
diff options
context:
space:
mode:
authorDaniel Colascione <dancol@dancol.org>2014-04-03 00:14:02 -0700
committerDaniel Colascione <dancol@dancol.org>2014-04-03 00:14:02 -0700
commit705cf384bec23354ad22a5c48d3430a96ef70ca1 (patch)
tree1615876bc7abad32f5e41ea34c5cd1747466798a /src/unexcw.c
parent3a9e7a49deea49088a773c321e52185e922748d6 (diff)
downloademacs-705cf384bec23354ad22a5c48d3430a96ef70ca1.tar.gz
Clean up array size calculations
Diffstat (limited to 'src/unexcw.c')
-rw-r--r--src/unexcw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/unexcw.c b/src/unexcw.c
index 25d13ca0ca4..1809961a801 100644
--- a/src/unexcw.c
+++ b/src/unexcw.c
@@ -81,8 +81,7 @@ read_exe_header (int fd, exe_header_t * exe_header_buffer)
#endif
assert (exe_header_buffer->file_header.f_nscns > 0);
assert (exe_header_buffer->file_header.f_nscns <=
- sizeof (exe_header_buffer->section_header) /
- sizeof (exe_header_buffer->section_header[0]));
+ EARRAYSIZE (exe_header_buffer->section_header));
assert (exe_header_buffer->file_header.f_opthdr > 0);
ret =