[Python-checkins] python/dist/src/Modules pyexpat.c,2.63,2.64

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sat, 29 Jun 2002 23:03:37 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv16090

Modified Files:
	pyexpat.c 
Log Message:
Undo usage of PyOS_snprintf (rev. 1.51 of PyXML).


Index: pyexpat.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pyexpat.c,v
retrieving revision 2.63
retrieving revision 2.64
diff -C2 -d -r2.63 -r2.64
*** pyexpat.c	28 Jun 2002 22:56:48 -0000	2.63
--- pyexpat.c	30 Jun 2002 06:03:35 -0000	2.64
***************
*** 114,118 ****
      enum XML_Error code = XML_GetErrorCode(parser);
  
!     PyOS_snprintf(buffer, sizeof(buffer), "%.200s: line %i, column %i",
              XML_ErrorString(code), lineno, column);
      err = PyObject_CallFunction(ErrorObject, "s", buffer);
--- 114,120 ----
      enum XML_Error code = XML_GetErrorCode(parser);
  
!     /* There is no risk of overflowing this buffer, since
!        even for 64-bit integers, there is sufficient space. */
!     sprintf(buffer, "%.200s: line %i, column %i",
              XML_ErrorString(code), lineno, column);
      err = PyObject_CallFunction(ErrorObject, "s", buffer);