Update reinterpretAs.cpp

This commit is contained in:
Alexey Milovidov 2022-05-07 15:10:16 +03:00 committed by GitHub
parent 8712b4d488
commit d6a5f20e6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -321,7 +321,7 @@ private:
--data.size;
data_to.resize(offset + data.size + 1);
memcpy(data_to.data() + offset, data.data, data.size);
memcpy(&data_to[offset], data.data, data.size);
offset += data.size;
data_to[offset] = 0;
++offset;