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,