space available in the buffer when adding a left
justified character with a non zero width,
(e.g. "%-1c"). [RT #22270]
+2966. [bug] isc_print_vsnprintf() failed to check if there was
+ space available in the buffer when adding a left
+ justified character with a non zero width,
+ (e.g. "%-1c"). [RT #22270]
+
--- 9.4-ESV-R3 released ---
2925. [bug] Named failed to accept uncachable negative responses
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: print.c,v 1.27.18.5 2008/02/18 23:46:01 tbox Exp $ */
+/* $Id: print.c,v 1.27.18.6 2010/10/18 04:08:02 marka Exp $ */
/*! \file */
if (width > 0) {
count += width;
width--;
- if (left) {
+ if (left && size > 1) {
*str++ = c;
size--;
}