From ba45d2478b259454e5b4c2d7dcaa7a35ecbf329c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 25 Sep 2007 00:27:29 +0000 Subject: Break out default pbytes argument to read and get_view routines, adding new routines. --- gold/script.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gold/script.cc') 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(&buf[0]), got); off += got; } -- cgit v1.1