From 451b00453196241914643fc1525f2d40afc14eec Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 12 Jan 2016 16:54:55 -0800 Subject: [PATCH] Using new on array types returns pointer-to-array. --- libcycript.cy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('/'); -- 2.45.2