Function SteamWrap_FileRead code do not put zero to end of string
char bytesData = (char )malloc(length);
int32 result = SteamRemoteStorage()->FileRead(fName, bytesData, length);
value returnValue = alloc_string(bytesData);
Must be
char bytesData = (char )malloc(length + 1);
int32 result = SteamRemoteStorage()->FileRead(fName, bytesData, length);
*(bytesData + length) = 0;
Function SteamWrap_FileRead code do not put zero to end of string char bytesData = (char )malloc(length); int32 result = SteamRemoteStorage()->FileRead(fName, bytesData, length);
Must be char bytesData = (char )malloc(length + 1); int32 result = SteamRemoteStorage()->FileRead(fName, bytesData, length); *(bytesData + length) = 0;