Sys.get_application_path() missing NULL terminator on Linux

Expected result:

/home/dapetcu21/.Defold/unpack/a237a1018ea606d34f18b0d3fb5dbef36d20d76d/x86_64-linux/bin

What I get:

/home/dapetcu21/.Defold/unpack/a237a1018ea606d34f18b0d3fb5dbef36d20d76d/x86_64-linux/bin/dmengine��J�

Somehow, this doesn’t seem to hit an unallocated page, so we don’t get a straight-on crash, but close enough…

1 Like