From 58a434fb5b94451832b2ccb501567baae20af2e5 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 23 Dec 2018 18:28:20 -0500 Subject: Correct read in test fuzzers --- src/fuzzer/fuzzers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fuzzer') diff --git a/src/fuzzer/fuzzers.h b/src/fuzzer/fuzzers.h index 8248a4f58..ee78f7a6d 100644 --- a/src/fuzzer/fuzzers.h +++ b/src/fuzzer/fuzzers.h @@ -88,7 +88,7 @@ int fuzz_files(char* files[]) { std::vector buf(max_fuzzer_input_size); in.read((char*)buf.data(), buf.size()); - const size_t got = std::cin.gcount(); + const size_t got = in.gcount(); buf.resize(got); buf.shrink_to_fit(); -- cgit v1.2.3