From: Jay Freeman (saurik) Date: Wed, 13 Jan 2016 00:54:55 +0000 (-0800) Subject: Using new on array types returns pointer-to-array. X-Git-Tag: v0.9.591~1 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/451b00453196241914643fc1525f2d40afc14eec?hp=b101f7547000aaa1354792aabc459de7cc9e91de Using new on array types returns pointer-to-array. --- diff --git a/libcycript.cy b/libcycript.cy index 6b9e779..c243072 100644 --- a/libcycript.cy +++ b/libcycript.cy @@ -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('/');