]> granicus.if.org Git - icinga2/commitdiff
Fix off-by-one mistake in error reporting for 'icinga2 console'
authorGunnar Beutner <gunnar@beutner.name>
Sat, 21 Feb 2015 12:19:04 +0000 (13:19 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Sat, 21 Feb 2015 12:19:04 +0000 (13:19 +0100)
fixes #8500

lib/cli/consolecommand.cpp

index 2e080929cef8638f7c572e7c31f5473ad2995cf2..a3377c4f2db683e491430ede000f792550b35a6e 100644 (file)
@@ -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;