diff options
author | MeshCollider <dobsonsa68@gmail.com> | 2017-07-11 21:37:53 +1200 |
---|---|---|
committer | MeshCollider <dobsonsa68@gmail.com> | 2017-09-08 10:36:26 +1200 |
commit | 592404f03f2b734351d734f0c9ca1fdce997321b (patch) | |
tree | 463d2c31825679c76f11445366b6736702b2824c /src/test/test_bitcoin_fuzzy.cpp | |
parent | d81dccf191a48a6b59c3747d7b4ccbe3535dde40 (diff) |
Changing &vec[0] to vec.data(), what 9804 missed
Diffstat (limited to 'src/test/test_bitcoin_fuzzy.cpp')
-rw-r--r-- | src/test/test_bitcoin_fuzzy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_bitcoin_fuzzy.cpp b/src/test/test_bitcoin_fuzzy.cpp index de14251601..50e4076d07 100644 --- a/src/test/test_bitcoin_fuzzy.cpp +++ b/src/test/test_bitcoin_fuzzy.cpp @@ -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; |