* in os_get_runtime_executable_path, we were wrongly assuming that
size would be set to the actual size of the string on a successful
call to NSGetExecutablePath. This isn't the case and we were
setting path[1025] = '\0'; causing things to break with XCode 4's
CLANG compiler.
* While we're at it, we should check to make that runtime_path is not
NULL before we free it, as there is a code path where we might end
up trying to free runtime_path when it was NULL but
saved_runtime_path was non-NULL.
if (_NSGetExecutablePath(path, &size) == -1)
return NULL;
- else
- path[size] = '\0';
return copied_string(path);
}
core = (runtime_path ? runtime_path :
copied_string(saved_runtime_path));
} else {
- free(runtime_path);
+ if (runtime_path)
+ free(runtime_path);
}
}
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.47"
+"1.0.47.1"