Permalink
Browse files

Call componentsSeparatedByShell.

Change the call to componentsSeparatedByString to
componentsSeparatedByShell, to split the arguments
correctly.
  • Loading branch information...
1 parent b06121e commit d44bf30965b3d444d309b9d43341c67568ee5e42 @drodriguez drodriguez committed Jun 27, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 objc/NuZip.m
View
@@ -52,7 +52,7 @@ @implementation NuZip
+ (int) unzip:(NSString *) command
{
- NSArray *args = [command componentsSeparatedByString:@" "];
+ NSArray *args = [command componentsSeparatedByShell];
int argc = [args count];
char **argv = (char **) malloc ([args count] * sizeof (char *));
int i;

0 comments on commit d44bf30

Please sign in to comment.