aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-04-24 18:51:52 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-04-24 18:59:54 +0300
commit444e459c8bc29107abb4e71a7a23b781a0f227f1 (patch)
tree5b372a5516b5db8f0b61ab4f65426b962d0338ba /library/cpp
parenteddade193c15258f2686a3b95b9430584fdce1c1 (diff)
downloadydb-444e459c8bc29107abb4e71a7a23b781a0f227f1.tar.gz
Intermediate changes
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/ytalloc/impl/core-inl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/ytalloc/impl/core-inl.h b/library/cpp/ytalloc/impl/core-inl.h
index ba5128bd8d..5a4f6a260b 100644
--- a/library/cpp/ytalloc/impl/core-inl.h
+++ b/library/cpp/ytalloc/impl/core-inl.h
@@ -251,7 +251,7 @@ void AssertBlobState(T* header, E expectedState)
auto actualState = header->State;
if (Y_UNLIKELY(actualState != expectedState)) {
char message[256];
- sprintf(message, "Invalid blob header state at %p: expected %" PRIx64 ", actual %" PRIx64,
+ snprintf(message, sizeof(message), "Invalid blob header state at %p: expected %" PRIx64 ", actual %" PRIx64,
header,
static_cast<ui64>(expectedState),
static_cast<ui64>(actualState));
@@ -2678,7 +2678,7 @@ public:
auto actualState = state;
if (Y_UNLIKELY(actualState != expectedState)) {
char message[256];
- sprintf(message, "Invalid small chunk state at %p: expected %" PRIx8 ", actual %" PRIx8,
+ snprintf(message, sizeof(message), "Invalid small chunk state at %p: expected %" PRIx8 ", actual %" PRIx8,
ptr,
static_cast<ui8>(expectedState),
static_cast<ui8>(actualState));