From 867c754c81b13d361a71b2081b5934bc5e3adc28 Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Wed, 29 Mar 2023 10:02:04 -0700 Subject: Fixed freezing issue with PTY --- pkcli_stub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkcli_stub.py') diff --git a/pkcli_stub.py b/pkcli_stub.py index 1c9472f..8992949 100644 --- a/pkcli_stub.py +++ b/pkcli_stub.py @@ -98,7 +98,7 @@ def pty_barrier(sock): while bytes(code) != b'\xc0\xdeack': buffer = sock.recv() while len(buffer) > 0: - code = code[:-1]+buffer[0] + code = code[:-1]+buffer[0:1] buffer = buffer[1:] if bytes(code) == b'\xc0\xdeack': break -- cgit v1.2.3