Commit 95700c70 authored by Martin v. Löwis's avatar Martin v. Löwis

Undo usage of PyOS_snprintf (rev. 1.51 of PyXML).

parent 2c888f25
......@@ -113,7 +113,9 @@ set_error(xmlparseobject *self)
int column = XML_GetErrorColumnNumber(parser);
enum XML_Error code = XML_GetErrorCode(parser);
PyOS_snprintf(buffer, sizeof(buffer), "%.200s: line %i, column %i",
/* 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);
if ( err != NULL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment