From 89d862360cc15c20783f4aa0775a3d2450f1bd7b Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Mon, 5 Jun 2006 23:56:36 +0000 Subject: Fix possible buffer overflow on Windows when reading code page. Backport of fix for bug #1501223. --- Python/sysmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python') diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 1ce016f3f7..b51fa86a76 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -940,7 +940,7 @@ _PySys_Init(void) PyObject *sysin, *sysout, *syserr; char *s; #ifdef MS_WINDOWS - char buf[10]; + char buf[13]; #endif m = Py_InitModule3("sys", sys_methods, sys_doc); -- cgit v1.2.1