From Craig Silverstein: Fix bug when reading large script files.

This commit is contained in:
Ian Lance Taylor 2007-09-24 17:09:50 +00:00
parent ed0616c6b7
commit e5851e4e66

View File

@ -307,6 +307,7 @@ Lex::read_file(std::string* contents)
{
this->input_file_->file().read(off, sizeof buf, buf, &got);
contents->append(reinterpret_cast<char*>(&buf[0]), got);
off += got;
}
while (got == sizeof buf);
}