Merge pull request #7152

cf4461f Fix byte_stream::put_n (Lee Clagett)
This commit is contained in:
luigi1111 2020-12-19 17:26:51 -06:00
commit ee8d740cba
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
2 changed files with 18 additions and 1 deletions

View file

@ -188,7 +188,7 @@ namespace epee
void put_n(const std::uint8_t ch, const std::size_t count)
{
check(count);
std::memset(tellp(), count, ch);
std::memset(tellp(), ch, count);
next_write_ += count;
}