commit | f16e05e7ecdba12180a0e64de22190b617a639bb | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Wed Nov 28 21:46:59 2001 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Wed Nov 28 21:46:59 2001 +0000 |
tree | 0223d704b072a16acc87a6c105c4329a78d03050 | |
parent | 5d3d134d560d24a9e6b9d65dd814542605c0b152 [diff] |
Use PyOS_snprintf() at some cost even though it was correct before. seterror() uses a char array and a pointer to the current position in that array. Use snprintf() and compute the amount of space left in the buffer based on the current pointer position.