summaryrefslogtreecommitdiff
path: root/lib/vasnprintf.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-11-20 13:37:27 +0100
committerBruno Haible <bruno@clisp.org>2010-11-20 13:37:27 +0100
commit79006111160a3dbe227f7a690546fcedbcba35c6 (patch)
treede903e647f5283e1710019ecaa2187d5a9ee928d /lib/vasnprintf.c
parent52e7df4a7f92778282b1025f72047e36dc929063 (diff)
downloadgnulib-79006111160a3dbe227f7a690546fcedbcba35c6.tar.gz
Fix a comment.
* lib/vasnprintf.c (VASNPRINTF): Fix comment.
Diffstat (limited to 'lib/vasnprintf.c')
-rw-r--r--lib/vasnprintf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c
index 87b8a55b99..18c5e39e80 100644
--- a/lib/vasnprintf.c
+++ b/lib/vasnprintf.c
@@ -4847,8 +4847,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