From b1a7cc12a9e7c659b724b61fa4e333b3eabaf82f Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 23 Mar 2005 22:21:32 +0000 Subject: [PATCH] Fixed xdelta spawning on MacOS X. --- platform_unix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform_unix.c b/platform_unix.c index d21c003..dbb9903 100644 --- a/platform_unix.c +++ b/platform_unix.c @@ -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 */