diff options
Diffstat (limited to 'lib/isc/print.c')
| -rw-r--r-- | lib/isc/print.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/isc/print.c b/lib/isc/print.c index 191ad24a664f..d8e72417d7bf 100644 --- a/lib/isc/print.c +++ b/lib/isc/print.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2006, 2008 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004-2006, 2008, 2010 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1999-2001, 2003 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -15,7 +15,7 @@ * 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.7 2010/10/18 23:45:45 tbox Exp $ */ /*! \file */ @@ -468,7 +468,7 @@ isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap) { if (width > 0) { count += width; width--; - if (left) { + if (left && size > 1) { *str++ = c; size--; } |
