diff options
Diffstat (limited to 'trace')
-rw-r--r-- | trace/record/record-client-base.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trace/record/record-client-base.cc b/trace/record/record-client-base.cc index f022db4..fa75f53 100644 --- a/trace/record/record-client-base.cc +++ b/trace/record/record-client-base.cc @@ -170,7 +170,7 @@ void Client::Run() { } while (stop_ == 0 && todo > 0) { - int buf[8192]; + long buf[8192]; size_t m = std::min(static_cast<uint64_t>(sizeof(buf)), todo); ssize_t n = input_.Read(buf, m); if (n <= 0) { |