]> git.saurik.com Git - cycript.git/commitdiff
Correct a stupid mistake (!= 0 without _assert()).
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 28 Oct 2015 15:10:24 +0000 (08:10 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 28 Oct 2015 15:10:24 +0000 (08:10 -0700)
Mach/Inject.cpp

index ace75cd032b3b9d9083b130ed149878992863e88..95610d23466d425289c7acbd21baf676a55b9f3d 100644 (file)
@@ -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)));