changeset 153:3ca280646f2d

allow zero length setfield
author Carl Byington <carl@five-ten-sg.com>
date Mon, 23 Jun 2014 11:18:02 -0700
parents 695d0206eedb
children 86f903100573
files src/com/five_ten_sg/connectbot/service/TerminalMonitor.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Mon Jun 23 08:46:13 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Mon Jun 23 11:18:02 2014 -0700
@@ -99,7 +99,7 @@
 
                     switch (cmd) {
                         case MONITOR_CMD_SETFIELD:
-                            if (packet.length >= 4)
+                            if (packet.length >= 3)
                                 setField(packet[1], packet[2], packet, 3);
 
                             break;