IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 10, 2005, 5:37:08 AM (21 years ago)
Author:
eugene
Message:

added pcontrol & pclient

File:
1 edited

Legend:

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

    r2937 r3187  
    3232
    3333  /* this needs some work to use multicommand correctly */
    34   ALLOCATE (argv, char *, targc);
     34  /* allocate extra space to have null terminated list */
     35  ALLOCATE (argv, char *, targc + 1);
    3536  argc = 0;
    3637  status = TRUE;
     
    4344
    4445      if (argc == 0) continue;
     46      argv[argc] = 0;
    4547
    4648      cmd = MatchCommand (argv[0], TRUE, FALSE);
Note: See TracChangeset for help on using the changeset viewer.