projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Torpedo logic still isn't right, but we're getting there.
[super-star-trek.git]
/
src
/
xio.c
diff --git
a/src/xio.c
b/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);
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,
cp->widget = XtVaCreateManagedWidget(cp->name,
commandWidgetClass,
*cp->parent,