Fix buffer_printer overflow

pull/1969/head
Jason Rhinelander 2 years ago
parent f168b7cf72
commit cfd80f6a17
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262

@ -22,7 +22,7 @@ namespace llarp
auto k = i + j;
if (j % 4 == 0)
out.push_back(' ');
if (j >= stop)
if (k >= stop)
out.append(" ");
else
fmt::format_to(ins, "{:02x}", std::to_integer<uint_fast16_t>(b[k]));

Loading…
Cancel
Save