diff src/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 211:7e4352b53f24

unsigned short -1 is 65535
author Carl Byington <carl@five-ten-sg.com>
date Mon, 07 Jul 2014 10:19:04 -0700
parents af235340fcde
children 4ecd8a39afb3
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Mon Jul 07 09:57:13 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Mon Jul 07 10:19:04 2014 -0700
@@ -401,6 +401,8 @@
         Log.i(TAG, "setField()");
         char[] da = new char[data.length - offset];
         System.arraycopy(data, offset, da, 0, data.length-offset);
+        if (l > 60000) l = -1;
+        if (c > 60000) c = -1;
         buffer.setField(l, c, da);
     }