IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 24, 2005, 2:31:42 PM (21 years ago)
Author:
eugene
Message:

dropped extra space on end of command assignment

File:
1 edited

Legend:

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

    r3103 r3317  
    7676      if (status) fprintf (stderr, "warning: exit status of command %d\n", status);
    7777
     78      /* convert all but last return to ' '.  drop last return */
    7879      for (B = val; *B != 0; B++) {
    79         if (*B == '\n') *B = ' ';
     80        if (*B == '\n') {
     81          if (B[1]) {
     82            *B = ' ';
     83          } else {
     84            *B = 0;
     85          }
     86        }
    8087      }
    8188    }
Note: See TracChangeset for help on using the changeset viewer.