diff --git a/src/rishka_syscalls.cpp b/src/rishka_syscalls.cpp index 97bf7f1..5b1ed5e 100644 --- a/src/rishka_syscalls.cpp +++ b/src/rishka_syscalls.cpp @@ -294,7 +294,7 @@ bool RishkaSyscall::Sys::changeDir(RishkaVM* vm) { } uint32_t RishkaSyscall::Sys::workingDirectory(RishkaVM* vm) { - char* data = vm->getWorkingDirectory().c_str(); + char* data = (const char*) vm->getWorkingDirectory().c_str(); change_rt_strpass(data); return strlen(data);