Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove use of deprecated stringWithCString

  • Loading branch information...
commit 46740dc3f31d34db1482e166ad3ce9d30a4ead17 1 parent 5f97caa
authored June 15, 2009

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 2  PBGitBinary.m
  2. 2  gitx.mm
2  PBGitBinary.m
@@ -66,7 +66,7 @@ + (void) initialize
66 66
 
67 67
 	// Try to find the path of the Git binary
68 68
 	char* path = getenv("GIT_PATH");
69  
-	if (path && [self acceptBinary:[NSString stringWithCString:path]])
  69
+	if (path && [self acceptBinary:[NSString stringWithUTF8String:path]])
70 70
 		return;
71 71
 
72 72
 	// No explicit path. Try it with "which"
2  gitx.mm
@@ -132,7 +132,7 @@ int main(int argc, const char** argv)
132 132
 	NSMutableArray* arguments = [NSMutableArray arrayWithCapacity:argc];
133 133
 	int i = 0;
134 134
 	for (i = 0; i < argc; i++)
135  
-		[arguments addObject: [NSString stringWithCString:argv[i]]];
  135
+		[arguments addObject: [NSString stringWithUTF8String:argv[i]]];
136 136
 
137 137
 	if (!isatty(STDIN_FILENO) && fdopen(STDIN_FILENO, "r"))
138 138
 		handleSTDINDiff(proxy);

0 notes on commit 46740dc

Please sign in to comment.
Something went wrong with that request. Please try again.