]> git.saurik.com Git - cycript.git/blobdiff - libcycript.cy
Using new on array types returns pointer-to-array.
[cycript.git] / libcycript.cy
index 6b9e779cb6ff68bbe8324a433bdd294efabaad09..c2430724cde5f5b1060e60b0a896593420db7fda 100644 (file)
@@ -310,7 +310,7 @@ require.resolve = function(name) {
         if (path != null)
             return path;
     } else {
-        let cwd = new (typedef char[1024]);
+        let cwd = *new (typedef char[1024]);
         cwd = getcwd(cwd, cwd.length).toString();
         cwd = cwd.split('/');