Mercurial > 510Connectbot
comparison 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 |
comparison
equal
deleted
inserted
replaced
152:695d0206eedb | 153:3ca280646f2d |
---|---|
97 char cmd = packet[0]; | 97 char cmd = packet[0]; |
98 Log.i(TAG, String.format("received %d command", (int)cmd)); | 98 Log.i(TAG, String.format("received %d command", (int)cmd)); |
99 | 99 |
100 switch (cmd) { | 100 switch (cmd) { |
101 case MONITOR_CMD_SETFIELD: | 101 case MONITOR_CMD_SETFIELD: |
102 if (packet.length >= 4) | 102 if (packet.length >= 3) |
103 setField(packet[1], packet[2], packet, 3); | 103 setField(packet[1], packet[2], packet, 3); |
104 | 104 |
105 break; | 105 break; |
106 | 106 |
107 case MONITOR_CMD_GETFIELD: | 107 case MONITOR_CMD_GETFIELD: |