Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95376c1d authored by Joe Onorato's avatar Joe Onorato Committed by Android (Google) Code Review
Browse files

Merge "Fix mac build of bit"

parents 22564ecc 8a5bb637
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -518,14 +518,17 @@ get_out_dir()
            // makes all the filenames long when being pretty printed.
            return "out";
        } else {
            char* pwd = get_current_dir_name();
            char pwd[PATH_MAX];
            if (getcwd(pwd, PATH_MAX) == NULL) {
                fprintf(stderr, "Your pwd is too long.\n");
                exit(1);
            }
            const char* slash = strrchr(pwd, '/');
            if (slash == NULL) {
                slash = "";
            }
            string result(common_base);
            result += slash;
            free(pwd);
            return result;
        }
    }