]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154781: Fix garbage from curses window.in_wstr() (GH-154782)
authorVyron Vasileiadis <hi@fedonman.com>
Wed, 29 Jul 2026 06:30:37 +0000 (09:30 +0300)
committerGitHub <noreply@github.com>
Wed, 29 Jul 2026 06:30:37 +0000 (09:30 +0300)
commit9c91fd958f3f16e2ea091013847cb024f9da5e48
treeec71df0b8e8c0e99c431929e9205c1c3d3e3209f
parent6af6165c21ddc6adc6208d69606dbdcdbdb06418
gh-154781: Fix garbage from curses window.in_wstr() (GH-154782)

in_wstr() searched the result for a terminating null, but winnwstr()
writes one only if it stored at least one character.  Use the number of
characters it returns as the length.
Lib/test/test_curses.py
Modules/_cursesmodule.c