summaryrefslogtreecommitdiff
path: root/src/error.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.cc')
-rw-r--r--src/error.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/error.cc b/src/error.cc
index c6309702..542d12b9 100644
--- a/src/error.cc
+++ b/src/error.cc
@@ -90,13 +90,13 @@ string source_context(const path& file,
return _("<no source context>");
assert(len > 0);
- assert(len < 2048);
+ assert(len < 8192);
std::ostringstream out;
-
+
ifstream in(file);
in.seekg(pos, std::ios::beg);
-
+
scoped_array<char> buf(new char[static_cast<std::size_t>(len) + 1]);
in.read(buf.get(), static_cast<std::streamsize>(len));
assert(in.gcount() == static_cast<std::streamsize>(len));