From fcd935cecf8985a6a5116147cac6ad685486407d Mon Sep 17 00:00:00 2001 From: Richard Holland Date: Thu, 19 Oct 2023 12:22:59 +0000 Subject: [PATCH] fix for https://github.com/Xahau/xahaud/issues/146 --- src/ripple/app/hook/impl/applyHook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple/app/hook/impl/applyHook.cpp b/src/ripple/app/hook/impl/applyHook.cpp index 869d597d7..452f783b4 100644 --- a/src/ripple/app/hook/impl/applyHook.cpp +++ b/src/ripple/app/hook/impl/applyHook.cpp @@ -1213,7 +1213,7 @@ DEFINE_HOOK_FUNCTION( memcpy(output, memory + mread_ptr, mread_len); out_len += mread_len; - // skip \0's + // detect and skip \0 if it appears at the end if (output[out_len-1] == '\0') out_len--;