Skip to content

Commit

Permalink
fix: fixed a bug that prevented Argon from starting on operating syst…
Browse files Browse the repository at this point in the history
…ems other than Linux.
  • Loading branch information
jacopodl committed Dec 10, 2023
1 parent 8c2855b commit 03220b0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions argon/vm/runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -802,9 +802,13 @@ argon::vm::datatype::String *argon::vm::GetExecutableName() {

#endif

if (size != -1)
if (size != -1) {
#ifdef _ARGON_PLATFORM_LINUX
path = StringNew(path_buf, size);
else
#else
path = StringNew(path_buf);
#endif
} else
path = StringIntern("");

memory::Free(path_buf);
Expand Down

0 comments on commit 03220b0

Please sign in to comment.