From: Bhuvansh Date: Thu, 30 Jul 2026 14:15:05 +0000 (+0530) Subject: gh-154587: Fix Windows buffer declaration in _cursesmodule (GH-154609) X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=0e54a406b45d3858c31f61d5e613f5c97ecfa355;p=thirdparty%2FPython%2Fcpython.git gh-154587: Fix Windows buffer declaration in _cursesmodule (GH-154609) --- diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index b8680edc6c0b..132b55c0a500 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) {