From e5851e4e66c4404c7b3cb2fee9132fb5035bd532 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 24 Sep 2007 17:09:50 +0000 Subject: [PATCH] From Craig Silverstein: Fix bug when reading large script files. --- gold/script.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gold/script.cc b/gold/script.cc index 6600411..582f6b7 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); } -- 2.7.4