]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-154587: Fix Windows buffer declaration in _cursesmodule (GH-154609)
authorBhuvansh <bhuvanshkataria@gmail.com>
Thu, 30 Jul 2026 14:15:05 +0000 (19:45 +0530)
committerGitHub <noreply@github.com>
Thu, 30 Jul 2026 14:15:05 +0000 (17:15 +0300)
Modules/_cursesmodule.c

index b8680edc6c0bed06b4adf2e89d6dc9ec04e9673f..132b55c0a500fb6ec2bbf5082cb56d788d543bae 100644 (file)
@@ -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) {