Remove use of deprecated stringWithCString

This commit is contained in:
Pieter de Bie
2009-06-15 23:09:09 +01:00
parent 5f97caabd1
commit 46740dc3f3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ static NSString* gitPath = nil;
// Try to find the path of the Git binary
char* path = getenv("GIT_PATH");
if (path && [self acceptBinary:[NSString stringWithCString:path]])
if (path && [self acceptBinary:[NSString stringWithUTF8String:path]])
return;
// No explicit path. Try it with "which"
+1 -1
View File
@@ -132,7 +132,7 @@ int main(int argc, const char** argv)
NSMutableArray* arguments = [NSMutableArray arrayWithCapacity:argc];
int i = 0;
for (i = 0; i < argc; i++)
[arguments addObject: [NSString stringWithCString:argv[i]]];
[arguments addObject: [NSString stringWithUTF8String:argv[i]]];
if (!isatty(STDIN_FILENO) && fdopen(STDIN_FILENO, "r"))
handleSTDINDiff(proxy);