You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
value returnValue = alloc_string(bytesData);
The text was updated successfully, but these errors were encountered:
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;
The text was updated successfully, but these errors were encountered: