summaryrefslogtreecommitdiff
path: root/src/error.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.cc')
-rw-r--r--src/error.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.cc b/src/error.cc
index 02413ef6..542d12b9 100644
--- a/src/error.cc
+++ b/src/error.cc
@@ -93,10 +93,10 @@ string source_context(const path& file,
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));