From 7840bef10af204aa796a665bfb6be017d02de193 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 10 Feb 2012 20:09:38 -1000 Subject: Corrected the type of a cast --- src/error.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/error.cc') diff --git a/src/error.cc b/src/error.cc index 542d12b9..88adfbdb 100644 --- a/src/error.cc +++ b/src/error.cc @@ -100,7 +100,7 @@ string source_context(const path& file, scoped_array buf(new char[static_cast(len) + 1]); in.read(buf.get(), static_cast(len)); assert(in.gcount() == static_cast(len)); - buf[static_cast(len)] = '\0'; + buf[static_cast(len)] = '\0'; bool first = true; for (char * p = std::strtok(buf.get(), "\n"); -- cgit v1.2.3