comparison Python/sysmodule.c @ 38618:80a627340c9f legacy-trunk

Add 3 more bytes to a buffer to cover constants in string and null byte on top of 10 possible digits for an int. Closes bug #1501223.
author Brett Cannon <bcannon@gmail.com>
date Mon, 05 Jun 2006 23:51:55 +0000
parents 3fe3ccdf0155
children 6ae418e4b36a
comparison
equal deleted inserted replaced
38617:f00518bb5b43 38618:80a627340c9f
1029 { 1029 {
1030 PyObject *m, *v, *sysdict; 1030 PyObject *m, *v, *sysdict;
1031 PyObject *sysin, *sysout, *syserr; 1031 PyObject *sysin, *sysout, *syserr;
1032 char *s; 1032 char *s;
1033 #ifdef MS_WINDOWS 1033 #ifdef MS_WINDOWS
1034 char buf[10]; 1034 char buf[13];
1035 #endif 1035 #endif
1036 1036
1037 m = Py_InitModule3("sys", sys_methods, sys_doc); 1037 m = Py_InitModule3("sys", sys_methods, sys_doc);
1038 if (m == NULL) 1038 if (m == NULL)
1039 return NULL; 1039 return NULL;