This commit is contained in:
Casey 2023-11-25 19:43:10 +03:00
parent 4181e93fbb
commit baedcf23bb
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

2
cbt.h
View File

@ -239,7 +239,7 @@ void cbt__init(int argc, char **argv, const char *source_file) {
cbt_log(CBT_LOG_INFO, "Found C Compiler: %s", cbt_cc); cbt_log(CBT_LOG_INFO, "Found C Compiler: %s", cbt_cc);
#ifdef __APPLE__ #ifdef __APPLE__
CBT_FAIL(proc_pidpath(getpid(), cbt_location, PATH_MAX) != 0); CBT_FAIL(proc_pidpath(getpid(), cbt_location, PATH_MAX) == -1);
#else #else
CBT_FAIL(readlink("/proc/self/exe", cbt_location, PATH_MAX) == -1); CBT_FAIL(readlink("/proc/self/exe", cbt_location, PATH_MAX) == -1);
#endif #endif