summaryrefslogtreecommitdiff
path: root/lib/isc
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2010-12-08 19:33:18 +0000
committerDoug Barton <dougb@FreeBSD.org>2010-12-08 19:33:18 +0000
commit2b56ccf7fc71c6016d49509c1de6c06f3e632770 (patch)
treee6fce2d4180de8deda535ee26db4241c2126a483 /lib/isc
parent0b3de9fd35baea98991ccb87ba9105c02d15a792 (diff)
Notes
Diffstat (limited to 'lib/isc')
-rw-r--r--lib/isc/api2
-rw-r--r--lib/isc/print.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/isc/api b/lib/isc/api
index 8216a30f0a2c2..2caba4267223e 100644
--- a/lib/isc/api
+++ b/lib/isc/api
@@ -1,3 +1,3 @@
LIBINTERFACE = 37
-LIBREVISION = 0
+LIBREVISION = 1
LIBAGE = 1
diff --git a/lib/isc/print.c b/lib/isc/print.c
index 191ad24a664f3..d8e72417d7bfe 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--;
}