This commit is contained in:
Kovid Goyal 2018-06-18 12:10:42 +05:30
parent c09542ea6a
commit 94273941ad
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -73,6 +73,8 @@ read_response(int fd, double timeout, char buf[CMD_BUF_SZ], size_t *pos, PyObjec
break;
case TRAILING_ESC:
if (ch == '\\') return append_buf(buf, pos, ans);
if (!add_char(buf, pos, 0x1b, ans)) return false;
if (!add_char(buf, pos, ch, ans)) return false;
state = BODY;
break;
}