IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 8, 2025, 11:37:15 AM (15 months ago)
Author:
eugene
Message:

fix an obscure mem-corruption issue; enable "macro create" and other macro sub-commands in lists (if,while,macro)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/CommandOps.c

    r39457 r42808  
    5959
    6060  free (commands[Nc].name);
    61   for (i = Nc + 1; i < Ncommands; i++)
     61  for (i = Nc + 1; i < Ncommands; i++) {
    6262    commands[i - 1] = commands[i];
     63  }
    6364  Ncommands --;
    64   REALLOCATE (commands, Command, Ncommands);
    6565  return (TRUE);
    6666}
Note: See TracChangeset for help on using the changeset viewer.