Changeset 50

Show
Ignore:
Timestamp:
07/12/04 22:49:15 (4 years ago)
Author:
morris
Message:

don't skip whitespace after index

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wire/trunk/wire/utility.c

    r41 r50  
    1 /* $Id: utility.c,v 1.9 2004/07/11 18:56:15 morris Exp $ */ 
     1/* $Id: utility.c,v 1.10 2004/07/12 20:49:15 morris Exp $ */ 
    22 
    33/* 
     
    324324        while(*input) { 
    325325                /* skip leading space */ 
    326                 while(isspace(*input)) 
    327                         input++; 
     326                if(argc != index) { 
     327                        while(isspace(*input)) 
     328                                input++; 
     329                } 
    328330                         
    329331                /* expand argv */ 
     
    385387 
    386388                /* skip tailing space */ 
    387                 while(isspace(*input)) 
    388                         input++; 
     389                if(argc != index) { 
     390                        while(isspace(*input)) 
     391                                input++; 
     392                } 
    389393        } 
    390394