From: Ian Lance Taylor Date: Mon, 24 Sep 2007 17:09:50 +0000 (+0000) Subject: From Craig Silverstein: Fix bug when reading large script files. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5851e4e66c4404c7b3cb2fee9132fb5035bd532;p=binutils-gdb.git From Craig Silverstein: Fix bug when reading large script files. --- diff --git a/gold/script.cc b/gold/script.cc index 6600411f3b6..582f6b76ff3 100644 --- a/gold/script.cc +++ b/gold/script.cc @@ -307,6 +307,7 @@ Lex::read_file(std::string* contents) { this->input_file_->file().read(off, sizeof buf, buf, &got); contents->append(reinterpret_cast(&buf[0]), got); + off += got; } while (got == sizeof buf); }