gh-154587: Fix Windows buffer declaration in _cursesmodule (GH-154609)

serhiy-storchaka <[email protected]> Thu, 30 Jul 2026 10:15:22 -0400 (EDT)
Newsgroups gmane.comp.python.cvs
Message-ID <[email protected]>
https://github.com/python/cpython/commit/0e54a406b45d3858c31f61d5e613f5c97ecfa355
commit: 0e54a406b45d3858c31f61d5e613f5c97ecfa355
branch: main
author: Bhuvansh <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-07-30T17:15:05+03:00
summary:

gh-154587: Fix Windows buffer declaration in _cursesmodule (GH-154609)

files:
M Modules/_cursesmodule.c

diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index b8680edc6c0bed..132b55c0a500fb 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -1998,7 +1998,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]