]> git.saurik.com Git - cycript.git/commitdiff
Using new on array types returns pointer-to-array.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 13 Jan 2016 00:54:55 +0000 (16:54 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 13 Jan 2016 00:54:55 +0000 (16:54 -0800)
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('/');