IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 1, 2012, 3:24:39 PM (14 years ago)
Author:
eugene
Message:

support for parallel dvo in mextract, avextract, avmerge, gstar, gcat; remove some if-def-ed out code already moved to libdvo; list -vectors and -buffers options (store names of vectors and buffers in lists); list -copy give error if missing source; catlist, hosts & remote functions to support parallel dvos; skyregion -save option; new skycoverage modes (-min-ubercal; -min-dmag-sys; -min-mcal; -max-mcal); gstar output formatting cleanups; add more average info to gstar output; functions for spectral similarity analysis; coords returns nans for projections off the sphere; fix cumulative function; add name:type option to opihi/read function (eg read a:float 2 b:time 3 c:int 4); line -frac option; vtype function to get vector types; threshold function; write -fits option; code for unfinished mtype function (matching vtype)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.basic/shell.c

    r16895 r33662  
    1313  int exit_status;
    1414  int wait_status;
    15   int result, length;
     15  int result;
    1616  char **args, *shell;
    1717  struct timeval start, now;
     
    3333  args[0] = shell;
    3434  args[1] = cmdflag;
    35 
    36   length = 0;
    37   for (i = 1; i < argc; i++) {
    38     length += strlen(argv[i]) + 1;
    39   }
    40  
    41   ALLOCATE (args[2], char, length);
    42   args[2][0] = 0;
    43   for (i = 1; i < argc; i++) {
    44     strcat (args[2], argv[i]);
    45     if (i < argc - 1) strcat (args[2], " ");
    46   }
     35  args[2] = paste_args (argc - 1, &argv[1]);
    4736  args[3] = NULL;
    4837
Note: See TracChangeset for help on using the changeset viewer.