diff options
author | Sander Striker <striker@apache.org> | 2002-07-13 21:34:36 +0000 |
---|---|---|
committer | Sander Striker <striker@apache.org> | 2002-07-13 21:34:36 +0000 |
commit | 52348ddd93a09e17e2c08ae5f7f150683de1ab1f (patch) | |
tree | 85049fefb07f326c707cb7c2f5125639982d8ecb /network_io | |
parent | d4ccdc3eace25a0414c9b3c36a77b3b1440ed79c (diff) | |
download | apr-52348ddd93a09e17e2c08ae5f7f150683de1ab1f.tar.gz |
Remove a bogus fixup from apr_vformatter, which made sure a NUL byte could
fit in by flushing if the final character was at the exact end of the buffer
it was using. Take care of the case that the fixup was handling in apr_psprintf,
by ensuring we can fit a NUL byte from the beginning. Implement this by
calling flush if we start with a 0 byte buffer (in which nothing can fit
anyway).
Secondly make sure that the flush function never tries to use a block
that has less than APR_PSPRINTF_MIN_STRINGSIZE bytes to spare.
Thanks to Nuutti Kotivuori <naked@iki.fi> for pointing out the problem, digging
around for answers and providing patches.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63654 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io')
0 files changed, 0 insertions, 0 deletions