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.5.3rc1 released ---
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: print.c,v 1.33.128.2 2008/02/18 23:46:30 tbox Exp $ */
+/* $Id: print.c,v 1.33.128.3 2010/10/18 04:06:37 marka Exp $ */
/*! \file */
if (width > 0) {
count += width;
width--;
- if (left) {
+ if (left && size > 1) {
*str++ = c;
size--;
}