diff --git a/src/projects/base/ovlibrary/data.cpp b/src/projects/base/ovlibrary/data.cpp index 618d99374..2989b02a2 100644 --- a/src/projects/base/ovlibrary/data.cpp +++ b/src/projects/base/ovlibrary/data.cpp @@ -418,11 +418,11 @@ namespace ov String Data::ToHexString(size_t length) const { - return ov::ToHexString(GetDataAs(), length); + return ov::ToHexString(GetDataAs(), std::min(GetLength(), length)); } String Data::ToHexString() const { - return ToHexString(GetLength()); + return ov::ToHexString(GetDataAs(), GetLength()); } } // namespace ov \ No newline at end of file