changeset 13883:92b602471ee0

Fix a comment. * lib/vasnprintf.c (VASNPRINTF): Fix comment.
author Bruno Haible <bruno@clisp.org>
date Sat, 20 Nov 2010 13:37:27 +0100
parents a6c2ab095e9b
children b85247a468f0
files ChangeLog lib/vasnprintf.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-20  Bruno Haible  <bruno@clisp.org>
+
+	Fix a comment.
+	* lib/vasnprintf.c (VASNPRINTF): Fix comment.
+
 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
 
 	ftoastr: don't assume snprintf
--- a/lib/vasnprintf.c
+++ b/lib/vasnprintf.c
@@ -4847,8 +4847,9 @@
                 fbp[3] = '\0';
 # else
                 /* On glibc2 systems from glibc >= 2.3 - probably also older
-                   ones - we know that snprintf's returns value conforms to
-                   ISO C 99: the gl_SNPRINTF_DIRECTIVE_N test passes.
+                   ones - we know that snprintf's return value conforms to
+                   ISO C 99: the tests gl_SNPRINTF_RETVAL_C99 and
+                   gl_SNPRINTF_TRUNCATION_C99 pass.
                    Therefore we can avoid using %n in this situation.
                    On glibc2 systems from 2004-10-18 or newer, the use of %n
                    in format strings in writable memory may crash the program