From e4b4d8c717e8eeed7c5c3ed279c30f036820f172 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 28 Oct 2015 08:10:24 -0700 Subject: [PATCH] Correct a stupid mistake (!= 0 without _assert()). --- Mach/Inject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mach/Inject.cpp b/Mach/Inject.cpp index ace75cd..95610d2 100644 --- a/Mach/Inject.cpp +++ b/Mach/Inject.cpp @@ -66,7 +66,7 @@ void InjectLibrary(int pid, int argc, const char *argv[]) { _assert(csops(pid, CS_OPS_PIDOFFSET, &offset, sizeof(offset)) != -1); char path[PATH_MAX]; - int writ(proc_pidpath(pid, path, sizeof(path)) != 0); + int writ(proc_pidpath(pid, path, sizeof(path))); _assert(writ != 0); auto fd(_syscall(open(path, O_RDONLY))); -- 2.49.0