cs: allow Racket framework to find itself not in "CS"

The installer-signing process can copy the framework to an application
directory that does not have "CS" in its name.
This commit is contained in:
Matthew Flatt 2018-11-15 06:34:42 -07:00
parent a9b02d5956
commit a6cc19648f

View File

@ -39,7 +39,7 @@ const char *get_framework_path() {
for (i = 0; i < c; i++) {
s = _dyld_get_image_name(i);
len = strlen(s);
if ((len > 9) && !strcmp("CS/Racket", s + len - 9)) {
if ((len > 7) && !strcmp("/Racket", s + len - 7)) {
char *s2;
s2 = strdup(s);
strcpy(s2 + len - 6, "boot");