aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libutil/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index 645b1ef01..9b65bd77f 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -745,7 +745,7 @@ void drainFD(int fd, Sink & sink, bool block)
}
});
- std::vector<unsigned char> buf(64 * 1024);
+ std::array<unsigned char, 64 * 1024> buf;
while (1) {
checkInterrupt();
ssize_t rd = read(fd, buf.data(), buf.size());