Another rollup patch.
[super-star-trek.git] / src / xio.c
index f95790d534c73d6d855fb67c9ab1e0cfdda5c08f..9e59c19945c595c9af846ff61a972695a7c98ef3 100644 (file)
--- a/src/xio.c
+++ b/src/xio.c
@@ -180,7 +180,7 @@ static void instantiate_main(int argc, char **argv)
     misclabel  = XtVaCreateManagedWidget("misclabel", 
                                         labelWidgetClass, misc,
                                         NULL); 
-    for (cp = commands; cp < commands + sizeof(commands)/sizeof(commands[0]); cp++) {
+    for (cp = commands; cp < commands + ARRAY_SIZE(commands); cp++) {
        cp->widget = XtVaCreateManagedWidget(cp->name, 
                                             commandWidgetClass, 
                                             *cp->parent,