diff Python/sysmodule.c @ 38619:11f66731554d 2.4

Fix possible buffer overflow on Windows when reading code page. Backport of fix for bug #1501223.
author Brett Cannon <bcannon@gmail.com>
date Mon, 05 Jun 2006 23:56:36 +0000
parents bc4fbbb2db30
children 6fb46e87d5f9
line wrap: on
line diff
--- a/Python/sysmodule.c	Mon Jun 05 19:11:02 2006 +0000
+++ b/Python/sysmodule.c	Mon Jun 05 23:56:36 2006 +0000
@@ -940,7 +940,7 @@
 	PyObject *sysin, *sysout, *syserr;
 	char *s;
 #ifdef MS_WINDOWS
-	char buf[10];
+	char buf[13];
 #endif
 
 	m = Py_InitModule3("sys", sys_methods, sys_doc);