]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix a comment.
authorBruno Haible <bruno@clisp.org>
Sat, 20 Nov 2010 12:39:00 +0000 (13:39 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 7 Jun 2011 21:38:49 +0000 (23:38 +0200)
gettext-runtime/intl/ChangeLog
gettext-runtime/intl/vasnprintf.c
gettext-runtime/libasprintf/ChangeLog
gettext-runtime/libasprintf/vasnprintf.c

index b17c0ea7f1df93c89c8c233886a828b9d6550c3f..e5154da806f80d8b8769f005436408bad5db709e 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-20  Bruno Haible  <bruno@clisp.org>
+
+       Fix a comment.
+       * vasnprintf.c (VASNPRINTF): Fix comment.
+
 2010-11-07  Bruno Haible  <bruno@clisp.org>
 
        * loadmsgcat.c (get_sysdep_segment_value): Update comment.
index 55dbb27af5044f81cab6078a097f003f6069b996..87389ebadb3e61092c5521066390aa33ba614b7d 100644 (file)
@@ -4846,8 +4846,9 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                 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
index 50f619f2c42e5af45ae05fd273ff92b5aaa5da74..d3dbb49de01d024033f5368228416755a5855dcb 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-20  Bruno Haible  <bruno@clisp.org>
+
+       Fix a comment.
+       * vasnprintf.c (VASNPRINTF): Fix comment.
+
 2010-11-07  Bruno Haible  <bruno@clisp.org>
 
        vasnprintf: Support I flag on glibc systems.
index 55dbb27af5044f81cab6078a097f003f6069b996..87389ebadb3e61092c5521066390aa33ba614b7d 100644 (file)
@@ -4846,8 +4846,9 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                 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