summaryrefslogtreecommitdiff
path: root/src/error.cc
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2011-10-06 22:07:01 -0700
committerCraig Earls <enderw88@gmail.com>2011-10-06 22:07:01 -0700
commitb400d65be082165f44e769605aa6a78133cf6d9a (patch)
tree27b18ee35a5c4f60a10cf4f626e15ac30276040b /src/error.cc
parente9ccb012c2c5ffe0e9f4916ee859bda95d9d4248 (diff)
parentf0791bbd7297e737d9e13d0b0bb21473b173b2a7 (diff)
downloadfork-ledger-b400d65be082165f44e769605aa6a78133cf6d9a.tar.gz
fork-ledger-b400d65be082165f44e769605aa6a78133cf6d9a.tar.bz2
fork-ledger-b400d65be082165f44e769605aa6a78133cf6d9a.zip
Merge remote branch 'upstream/next' into next
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));