Changeset 0a973a9e in rtems


Ignore:
Timestamp:
Mar 16, 2010, 2:05:55 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
cf293d15
Parents:
ed7672a
Message:

2010-03-16 Joel Sherrill <joel.sherrill@…>

  • libmisc/shell/shell_makeargs.c: Fix bugs introduced by patch attempting to add quoted arguments.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    red7672a r0a973a9e  
     12010-03-16      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libmisc/shell/shell_makeargs.c: Fix bugs introduced by patch
     4        attempting to add quoted arguments.
     5
    162010-03-12      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • cpukit/libmisc/shell/shell_makeargs.c

    red7672a r0a973a9e  
    4141
    4242    if ( *ch == '"' ) {
    43       argv_p[ argc++ ] = ++ch;
    44       while ( ( *ch == '\0' ) && ( *ch != '"' ) ) ch++;
     43      argv_p[ argc ] = ++ch;
     44      while ( ( *ch != '\0' ) && ( *ch != '"' ) ) ch++;
    4545    } else {
    46       argv_p[ argc++ ] = ch;
    47       while ( ( *ch == '\0' ) && ( !isspace((unsigned char)*ch) ) ) ch++;
     46      argv_p[ argc ] = ch;
     47      while ( ( *ch != '\0' ) && ( !isspace((unsigned char)*ch) ) ) ch++;
    4848    }
     49
     50    argc++;
    4951
    5052    if ( *ch == '\0' )
Note: See TracChangeset for help on using the changeset viewer.