diff options
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r-- | Modules/pyexpat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index db0ae85..e98f393 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -307,7 +307,7 @@ xmlparse_Parse( xmlparseobject *self, PyObject *args ) return NULL; } else if (rv == 0) { - PyErr_Format(ErrorObject, "%s: line %i, column %i", + PyErr_Format(ErrorObject, "%.200s: line %i, column %i", XML_ErrorString( XML_GetErrorCode(self->itself) ), XML_GetErrorLineNumber(self->itself), XML_GetErrorColumnNumber(self->itself) ); |