Ignore:
Timestamp:
Jul 9, 2008, 3:39:53 PM (14 years ago)
Author:
charles
Message:

(libT) let tr_getopt() support short options' arguments to be embedded, such as -p51413

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tr-getopt.c

    r6306 r6307  
    137137            }
    138138            len = strlen( o->shortName );
    139             if( !memcmp( o->shortName, str+1, len ) && str[len+1]=='=' ) {
    140                 if( nested ) *nested = str+len+2;
     139            if( !memcmp( o->shortName, str+1, len ) ) {
     140                if( nested )
     141                    *nested = str[len+1]=='=' ? str+len+2 : str+len+1;
    141142                return o;
    142143            }
Note: See TracChangeset for help on using the changeset viewer.