# HG changeset patch # User Carl Byington # Date 1404753544 25200 # Node ID 7e4352b53f2482913b6317e616b6a7787f82a7da # Parent af235340fcde065fb859384f05988fe7dd80d378 unsigned short -1 is 65535 diff -r af235340fcde -r 7e4352b53f24 Makefile --- a/Makefile Mon Jul 07 09:57:13 2014 -0700 +++ b/Makefile Mon Jul 07 10:19:04 2014 -0700 @@ -91,4 +91,3 @@ internaldocs: doxygen - diff -r af235340fcde -r 7e4352b53f24 src/com/five_ten_sg/connectbot/service/TerminalMonitor.java --- 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); }