cpython: 6b46c3deea2c (original) (raw)
Mercurial > cpython
changeset 104727:6b46c3deea2c 3.6
Issue #28333: Fixes off-by-one error that was adding an extra space. [#28333]
Steve Dower steve.dower@microsoft.com | |
---|---|
date | Tue, 25 Oct 2016 11:51:54 -0700 |
parents | 84a3c5003510 |
children | 44d15ba67d2e 8358c68579e9 |
files | Parser/myreadline.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-)[+] [-] Parser/myreadline.c 3 |
line wrap: on
line diff
--- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -225,7 +225,8 @@ PyOS_StdioReadline(FILE *sys_stdin, FILE if (wlen) { DWORD n; fflush(stderr);
WriteConsoleW(hStdErr, wbuf, wlen, &n, NULL);[](#l1.7)
/* wlen includes null terminator, so subtract 1 */[](#l1.8)
WriteConsoleW(hStdErr, wbuf, wlen - 1, &n, NULL);[](#l1.9) }[](#l1.10) PyMem_RawFree(wbuf);[](#l1.11) }[](#l1.12)