]> git.saurik.com Git - cycript.git/blobdiff - Console.cpp
Refactor all of Java bridge to release references.
[cycript.git] / Console.cpp
index 6587106bd0c3ac2378e476947fe4348f8ea7995f..31a2dbbc6fc4eb348b7862dbabf786979c34d965 100644 (file)
@@ -219,7 +219,9 @@ static void sigint(int) {
         case Parsing:
             longjmp(ctrlc_, 1);
         case Running:
+#ifndef __ANDROID__
             CYCancel();
+#endif
             return;
         case Sending:
             return;
@@ -1024,7 +1026,7 @@ int Main(int argc, char * const argv[], char const * const envp[]) {
             }
         } file(address.sun_path);
 
-        _syscall(bind(server, reinterpret_cast<sockaddr *>(&address), SUN_LEN(&address)));
+        _syscall(bind(server, reinterpret_cast<sockaddr *>(&address), sizeof(address)));
         _syscall(chmod(address.sun_path, 0777));
 
         _syscall(listen(server, 1));