X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Fxio.c;h=9e59c19945c595c9af846ff61a972695a7c98ef3;hb=ff4bd91de17bf0e1a8e49f608c0f76855d7ce0d3;hp=f95790d534c73d6d855fb67c9ab1e0cfdda5c08f;hpb=1b01681fc8d3e0bf286ae496cb08a36cb1d66ed5;p=super-star-trek.git diff --git a/src/xio.c b/src/xio.c index f95790d..9e59c19 100644 --- 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,