From 4e27ded7ce2640920b6ae309f99dfe9d4202ca0e Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 21 Feb 2015 13:19:04 +0100 Subject: [PATCH] Fix off-by-one mistake in error reporting for 'icinga2 console' fixes #8500 --- lib/cli/consolecommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/consolecommand.cpp b/lib/cli/consolecommand.cpp index 2e080929c..a3377c4f2 100644 --- a/lib/cli/consolecommand.cpp +++ b/lib/cli/consolecommand.cpp @@ -146,7 +146,7 @@ incomplete: if (i == di.LastLine) len = di.LastColumn - di.FirstColumn + 1; else - len = ulines[i].GetLength(); + len = ulines[i - 1].GetLength(); int offset; -- 2.40.0