Changing &vec[0] to vec.data(), what 9804 missed

This commit is contained in:
MeshCollider
2017-07-11 21:37:53 +12:00
parent d81dccf191
commit 592404f03f
15 changed files with 48 additions and 49 deletions

View File

@@ -67,7 +67,7 @@ int do_fuzz()
if (buffer.size() < sizeof(uint32_t)) return 0;
uint32_t test_id = 0xffffffff;
memcpy(&test_id, &buffer[0], sizeof(uint32_t));
memcpy(&test_id, buffer.data(), sizeof(uint32_t));
buffer.erase(buffer.begin(), buffer.begin() + sizeof(uint32_t));
if (test_id >= TEST_ID_END) return 0;