diff src/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 153:3ca280646f2d

allow zero length setfield
author Carl Byington <carl@five-ten-sg.com>
date Mon, 23 Jun 2014 11:18:02 -0700
parents 69333ca1563c
children 156b53fc4815
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;