Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove use of deprecated stringWithCString

  • Loading branch information...
commit 46740dc3f31d34db1482e166ad3ce9d30a4ead17 1 parent 5f97caa
Pieter de Bie authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  PBGitBinary.m
  2. +1 −1  gitx.mm
View
2  PBGitBinary.m
@@ -66,7 +66,7 @@ + (void) initialize
// 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"
View
2  gitx.mm
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.