From cef22a53252bd958b978178b7215a5ab04c8ae74 Mon Sep 17 00:00:00 2001 From: Taylor Stephensen Date: Sun, 24 Sep 2023 23:07:30 -0400 Subject: [PATCH] Oops Forgot to update a few lines of code in the previous commit. Sorry! --- mods/src/misc/misc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/src/misc/misc.cpp b/mods/src/misc/misc.cpp index 79c8825d..2c484184 100644 --- a/mods/src/misc/misc.cpp +++ b/mods/src/misc/misc.cpp @@ -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; }