Forgot to update a few lines of code in the previous commit. Sorry!
This commit is contained in:
taylorthemushroom 2023-09-24 23:07:30 -04:00 committed by TheBrokenRail
parent 67ef365505
commit cef22a5325

View File

@ -21,8 +21,8 @@ static AppPlatform_readAssetFile_return_value AppPlatform_readAssetFile_injectio
stream.read(buf, len); stream.read(buf, len);
// Return String // Return String
AppPlatform_readAssetFile_return_value ret; AppPlatform_readAssetFile_return_value ret;
ret.length = str.length(); ret.length = len;
ret.data = strdup(str.c_str()); ret.data = strdup(buf);
return ret; return ret;
} }