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

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

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

(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 2f8f7d64bd60b9..48c53fdc68b1f2 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -796,7 +796,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]