diff options
author | Ian Lance Taylor <iant@google.com> | 2007-09-25 00:27:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-09-25 00:27:29 +0000 |
commit | ba45d2478b259454e5b4c2d7dcaa7a35ecbf329c (patch) | |
tree | e9d069c39988c400a7f41583978372080b661a92 /gold/script.cc | |
parent | 5f67a19ce6e7ddd10473df8e2754d9d229c884fe (diff) | |
download | gdb-ba45d2478b259454e5b4c2d7dcaa7a35ecbf329c.zip gdb-ba45d2478b259454e5b4c2d7dcaa7a35ecbf329c.tar.gz gdb-ba45d2478b259454e5b4c2d7dcaa7a35ecbf329c.tar.bz2 |
Break out default pbytes argument to read and get_view routines,
adding new routines.
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; } |