diff options
Diffstat (limited to 'gold/script.cc')
-rw-r--r-- | gold/script.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/script.cc b/gold/script.cc index 582f6b7..53cd493 100644 --- a/gold/script.cc +++ b/gold/script.cc @@ -305,7 +305,7 @@ Lex::read_file(std::string* contents) unsigned char buf[BUFSIZ]; do { - this->input_file_->file().read(off, sizeof buf, buf, &got); + this->input_file_->file().read_up_to(off, sizeof buf, buf, &got); contents->append(reinterpret_cast<char*>(&buf[0]), got); off += got; } |