From baedcf23bb450a590d083c2b45ba64340f64e830 Mon Sep 17 00:00:00 2001 From: hkc Date: Sat, 25 Nov 2023 19:43:10 +0300 Subject: [PATCH] -.- --- cbt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbt.h b/cbt.h index c1f5ff1..75c6ed6 100644 --- a/cbt.h +++ b/cbt.h @@ -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); #ifdef __APPLE__ - CBT_FAIL(proc_pidpath(getpid(), cbt_location, PATH_MAX) != 0); + CBT_FAIL(proc_pidpath(getpid(), cbt_location, PATH_MAX) == -1); #else CBT_FAIL(readlink("/proc/self/exe", cbt_location, PATH_MAX) == -1); #endif