used .data() to access underlying raw data of container

This commit is contained in:
Axel Kohlmeyer
2025-06-25 20:22:30 -04:00
parent 96d1704b8e
commit e9b5e55f18
3 changed files with 5 additions and 5 deletions

View File

@ -527,7 +527,7 @@ void ReaderNative::read_buf(void * ptr, size_t size, size_t count)
std::string ReaderNative::read_binary_str(size_t size)
{
std::string str(size, '\0');
read_buf(&str[0], sizeof(char), size);
read_buf(str.data(), sizeof(char), size);
return str;
}