mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-17 16:44:00 +00:00
Fix crash in xrdopt. (#260)
In 85fa89ba88fb34c04d1710ac0f4d32a91c94af3b, I removed 2 entries from a table, but didn't update the count. This leads to a `SIGSEGV`.
This commit is contained in:
parent
45d67305e7
commit
819f1c6c0a
@ -33,7 +33,6 @@
|
||||
#include "maindefs.h"
|
||||
|
||||
XrmDatabase commandlineDB, applicationDB, serverDB, homeDB, rDB;
|
||||
int opTableEntries = 33;
|
||||
extern int LispWindowRequestedX, LispWindowRequestedY;
|
||||
extern unsigned LispWindowRequestedWidth, LispWindowRequestedHeight;
|
||||
|
||||
@ -190,7 +189,7 @@ void read_Xoption(int *argc, char *argv[])
|
||||
/* JDS 12/20/01: app name should always be "ldex", not what's in argv?? */
|
||||
XrmParseCommand(&commandlineDB, opTable, opTableEntries, argv[0], argc, argv);
|
||||
#endif
|
||||
XrmParseCommand(&commandlineDB, opTable, opTableEntries, "ldex", argc, argv);
|
||||
XrmParseCommand(&commandlineDB, opTable, sizeof(opTable) / sizeof(opTable[0]), "ldex", argc, argv);
|
||||
|
||||
if (XrmGetResource(commandlineDB, "ldex.help", "Ldex.Help", str_type, &value) == True) {
|
||||
print_Xusage(argv[0]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user