- Issue #6624: yArg_ParseTuple with "s" format when parsing argument with

NUL: Bogus TypeError detail string.
This commit is contained in:
Sean Reifscheider 2009-08-01 23:54:55 +00:00
parent 5c4a5d2911
commit 9279e7d177
2 changed files with 4 additions and 1 deletions

View File

@ -1180,6 +1180,9 @@ Build
C-API
-----
- Issue #6624: yArg_ParseTuple with "s" format when parsing argument with
NUL: Bogus TypeError detail string.
- Issue #5954: Add a PyFrame_GetLineNumber() function to replace most uses of
PyCode_Addr2Line().

View File

@ -328,7 +328,7 @@ vgetargs1(PyObject *args, const char *format, va_list *p_va, int flags)
flags, levels, msgbuf,
sizeof(msgbuf), &freelist);
if (msg) {
seterror(i+1, msg, levels, fname, message);
seterror(i+1, msg, levels, fname, msg);
return cleanreturn(0, freelist);
}
}