Skip to content

Commit

Permalink
Fixed xdelta spawning on MacOS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 23, 2005
1 parent 0133d0e commit b1a7cc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform_unix.c
Expand Up @@ -672,9 +672,11 @@ static void find_basedir(int *argc, char **argv)
argv[1] = NULL;

/* Now that we know where xdelta will be, chdir out of AppBundle... */
ptr = strstr(realbuf, "/Contents/MacOS");
/* !!! FIXME: Fails if there are more than one of these in the string... */
ptr = strstr(realbuf, "/Contents/MacOS/");
if (ptr != NULL)
{
ptr++; /* keep a '/' at the end of the string... */
*ptr = '\0';
chdir(realbuf);
} /* if */
Expand Down

0 comments on commit b1a7cc1

Please sign in to comment.