diff src/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 404:ec74f347ab5f

fix bad args to arrays.fill(); bump version number
author Carl Byington <carl@five-ten-sg.com>
date Tue, 21 Oct 2014 13:11:59 -0700
parents 14aa0621aa7d
children d3c5480e8441
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Mon Oct 20 19:17:51 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Tue Oct 21 13:11:59 2014 -0700
@@ -451,8 +451,8 @@
         arg2[3] = (char)(c & 0x0000ffff);
         int base = 4;
 
-        if ((l >= buffer.height) || (c + len >= buffer.width)) {
-            Arrays.fill(arg2, base, len - 1, ' ');
+        if ((l >= buffer.height) || (c + len > buffer.width)) {
+            Arrays.fill(arg2, base, base + len, ' ');
         }
         else {
             System.arraycopy(buffer.charArray[buffer.screenBase + l], c, arg2, base, len);