projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed0616c
)
From Craig Silverstein: Fix bug when reading large script files.
author
Ian Lance Taylor
<iant@google.com>
Mon, 24 Sep 2007 17:09:50 +0000
(17:09 +0000)
committer
Ian Lance Taylor
<iant@google.com>
Mon, 24 Sep 2007 17:09:50 +0000
(17:09 +0000)
gold/script.cc
patch
|
blob
|
history
diff --git
a/gold/script.cc
b/gold/script.cc
index 6600411f3b67d3f0629cfaadf7d9bffb6767f1f9..582f6b76ff3b1ea90c82fa1434f77ba551e7ca04 100644
(file)
--- 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<char*>(&buf[0]), got);
+ off += got;
}
while (got == sizeof buf);
}