[3.15] gh-154587: Fix Windows buffer declaration in _cursesmodule (GH-154609) (GH-154931)

serhiy-storchaka <[email protected]> Thu, 30 Jul 2026 10:46:40 -0400 (EDT)
Newsgroups gmane.comp.python.cvs
Message-ID <[email protected]>
https://github.com/python/cpython/commit/f82903b01e3b32528b2e921372e745aa2ed3b2bf
commit: f82903b01e3b32528b2e921372e745aa2ed3b2bf
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-07-30T14:46:27Z
summary:

[3.15] gh-154587: Fix Windows buffer declaration in _cursesmodule (GH-154609) (GH-154931)

(cherry picked from commit 0e54a406b45d3858c31f61d5e613f5c97ecfa355)

Co-authored-by: Bhuvansh <[email protected]>

files:
M Modules/_cursesmodule.c

diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 014d8ce598e961..82c8e642a51154 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -892,7 +892,7 @@ PyCursesWindow_New(cursesmodule_state *state,
 {
     if (encoding == NULL) {
 #if defined(MS_WINDOWS)
-        char *buffer[100];
+        char buffer[100];
         UINT cp;
         cp = GetConsoleOutputCP();
         if (cp != 0) {

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]