The char dummy must be dummy[2] to accomodate a nul terminator when dealing
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 15 May 2008 03:59:59 +0000 (03:59 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 15 May 2008 03:59:59 +0000 (03:59 +0000)
commitd303603290c0722985248bf11e99305b8ac7d01d
tree3b5ef2328cbfd3745af271f88c8f4eb88be1062b
parent2b09fabe84f01d02efabd4a79a9e49213b78fc98
The char dummy must be dummy[2] to accomodate a nul terminator when dealing
with a degenerate buffer size.

Submitted-by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
Taken-from: FreeBSD
lib/libc/stdio/vsnprintf.c