From 20537acf2e7f4ccb3824771f4af4882a77a262af Mon Sep 17 00:00:00 2001 From: 18721213663 Date: Thu, 4 May 2023 09:57:37 +0800 Subject: [PATCH] bugfix_readtext_offset_64 Signed-off-by: 18721213663 --- interfaces/kits/js/src/mod_fs/properties/read_text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interfaces/kits/js/src/mod_fs/properties/read_text.cpp b/interfaces/kits/js/src/mod_fs/properties/read_text.cpp index 61093e160..17fba8f72 100755 --- a/interfaces/kits/js/src/mod_fs/properties/read_text.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/read_text.cpp @@ -14,6 +14,7 @@ */ #include "read_text.h" +#include #include #include #include @@ -164,7 +165,7 @@ napi_value ReadText::Sync(napi_env env, napi_callback_info info) } if (offset > statbf.st_size) { - HILOGE("Invalid offset: %{public}lld", offset); + HILOGE("Invalid offset: %{public}" PRIu64, offset); NError(EINVAL).ThrowErr(env); return nullptr; } -- Gitee