mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-10 16:49:54 -04:00
Fix to_string_hex_array string reserve (#1619)
This commit is contained in:
parent
7354ba8fd5
commit
4f440055cb
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ std::string to_string_hex(uint64_t value, int32_t length) {
|
|||
|
||||
std::string to_string_hex_array(uint8_t* array, int32_t length) {
|
||||
std::string str_return;
|
||||
str_return.reserve(length);
|
||||
str_return.reserve(length * 2);
|
||||
|
||||
for (uint8_t i = 0; i < length; i++)
|
||||
str_return += to_string_hex(array[i], 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue