mirror of
https://github.com/python/cpython.git
synced 2025-12-10 19:10:59 +00:00
Issue #28333: Fixes off-by-one error that was adding an extra space.
This commit is contained in:
parent
26231bb317
commit
6c2b9d3479
1 changed files with 2 additions and 1 deletions
|
|
@ -225,7 +225,8 @@ PyOS_StdioReadline(FILE *sys_stdin, FILE *sys_stdout, const char *prompt)
|
||||||
if (wlen) {
|
if (wlen) {
|
||||||
DWORD n;
|
DWORD n;
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
WriteConsoleW(hStdErr, wbuf, wlen, &n, NULL);
|
/* wlen includes null terminator, so subtract 1 */
|
||||||
|
WriteConsoleW(hStdErr, wbuf, wlen - 1, &n, NULL);
|
||||||
}
|
}
|
||||||
PyMem_RawFree(wbuf);
|
PyMem_RawFree(wbuf);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue