From: Jay Freeman (saurik) Date: Wed, 28 Oct 2015 15:10:24 +0000 (-0700) Subject: Correct a stupid mistake (!= 0 without _assert()). X-Git-Tag: v0.9.504~33 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/e4b4d8c717e8eeed7c5c3ed279c30f036820f172 Correct a stupid mistake (!= 0 without _assert()). --- 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)));