gh-154587: Fix Windows buffer declaration in _cursesmodule - #154609
Conversation
|
Thanks @BHUVANSH855 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
GH-154931 is a backport of this pull request to the 3.15 branch. |
|
GH-154932 is a backport of this pull request to the 3.14 branch. |
|
GH-154933 is a backport of this pull request to the 3.13 branch. |
|
|
|
Summary
Fix a Windows-only buffer declaration in
Modules/_cursesmodule.c.The code incorrectly declared:
which creates an array of 100
char *pointers. However, the buffer is passed toPyOS_snprintf(), which expects a writablechar *character buffer. This change replaces it with:which matches the intended usage and resolves the
clang-clincompatible pointer type compilation error reported in gh-154587.Closes gh-154587.