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
1 changed files with 2 additions and 2 deletions

View File

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