]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1431. [bug] isc_print_snprintf() "%s" with precision could walk of
authorMark Andrews <marka@isc.org>
Tue, 25 Feb 2003 21:32:07 +0000 (21:32 +0000)
committerMark Andrews <marka@isc.org>
Tue, 25 Feb 2003 21:32:07 +0000 (21:32 +0000)
                        end of arguement. [RT #5191]

CHANGES
lib/isc/print.c

diff --git a/CHANGES b/CHANGES
index 700242c4c6a465cc52727fbd68a4ba6edfc4a88d..be896830e0b2b34b9bce20d2c202795da91a9e05 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+1431.  [bug]           isc_print_snprintf() "%s" with precision could walk of
+                       end of arguement. [RT #5191]
+
 1430.  [port]          linux: IPv6 interface scanning support.
 
 1429.  [bug]           Prevent the cache getting locked to old servers.
index 53dc52752a8f5b63445095f576fa3631128c7ed0..d15b434625f10e3949d5fec1fe98f523ad942c1a 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: print.c,v 1.22 2001/05/16 00:52:55 gson Exp $ */
+/* $Id: print.c,v 1.23 2003/02/25 21:32:07 marka Exp $ */
 
 #include <config.h>
 
@@ -350,7 +350,7 @@ isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap) {
 
                                n = precision;
                                tp = cp;
-                               while (n != 0 && *tp != '0')
+                               while (n != 0 && *tp != '\0')
                                        n--, tp++;
                                length = precision - n;
                        } else {