- Timestamp:
- 02/18/10 16:32:05 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/PlayerFramework/CommonMediaPlayer/Classes/AGProcess.m
r1136 r1143 467 467 - (void)doProcargs 468 468 { 469 idargs = [NSMutableArray array];470 idenv = [NSMutableDictionary dictionary];469 NSMutableArray *args = [NSMutableArray array]; 470 NSMutableDictionary *env = [NSMutableDictionary dictionary]; 471 471 int mib[3]; 472 472 … … 605 605 [env setObject:[string substringFromIndex:index + 1] forKey:[string substringToIndex:index]]; 606 606 } 607 args = [args subarrayWithRange:NSMakeRange(0, i + 1)];607 [args removeObjectsInRange:NSMakeRange(i+1, [args count]-(i+1))]; 608 608 } else { 609 609 // we're using the older sysctl selector, so we just guess by looking for an '=' in the argument … … 616 616 [env setObject:[string substringFromIndex:index + 1] forKey:[string substringToIndex:index]]; 617 617 } 618 args = [args subarrayWithRange:NSMakeRange(0, i + 1)];618 [args removeObjectsInRange:NSMakeRange(i+1, [args count]-(i+1))]; 619 619 } 620 620 } else {
