aboutsummaryrefslogtreecommitdiff
path: root/src/lua/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/main.cpp')
-rw-r--r--src/lua/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lua/main.cpp b/src/lua/main.cpp
index a17ed1c..495ca6f 100644
--- a/src/lua/main.cpp
+++ b/src/lua/main.cpp
@@ -28,16 +28,17 @@ int main(int argc, char* argv[])
/* absolute directory */
Buffer cwd = Buffer(1024);
#ifdef _WIN32
- _getcwd((char*)cwd.data, cwd.size);
+ _getcwd((char*)&cwd, cwd.size());
#elif defined __unix__
#elif defined __APPLE__
#endif
- luax_setfieldstring(L, "cwd", (char*)cwd.data);
+ luax_setfieldstring(L, "cwd", (char*)&cwd);
luax_clear(L);
/* boot jin and run it */
boot(L);
luax_close(L);
+
return 0;
} \ No newline at end of file