console-client: Fix fixed-string escape mode dropping its last byte
This fixes an issue of the server not receiving the final byte of the
escape sequence due to an off by one.
Fixes: 15691c8ef350bcaae0f37c522488ce87dbe5ea84
Change-Id: Id6240f858fb4b77e684faeb3405cc631c07c35cb
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/console-client.c b/console-client.c
index 6baeb0b..052ece2 100644
--- a/console-client.c
+++ b/console-client.c
@@ -121,6 +121,7 @@
if (esc_state->str[esc_state->pos] == '\0') {
prc = PROCESS_ESC;
+ ++i;
break;
}
}