]> sjero.net Git - wget/commitdiff
[svn] Doc fix.
authorhniksic <devnull@localhost>
Fri, 8 Jul 2005 07:25:21 +0000 (00:25 -0700)
committerhniksic <devnull@localhost>
Fri, 8 Jul 2005 07:25:21 +0000 (00:25 -0700)
src/log.c

index f0083cc57002adbd496ea5255f748271c4253ef8..ee9f0693e18c61047463b391d3853055f4bba8e3 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -369,12 +369,12 @@ log_vprintf_internal (struct logvprintf_state *state, const char *fmt,
   numwritten = vsnprintf (write_ptr, available_size, fmt, args);
 
   /* vsnprintf() will not step over the limit given by available_size.
-     If it fails, it will return either -1 (POSIX?) or the number of
-     characters that *would have* been written, if there had been
-     enough room (C99).  In the former case, we double the
-     available_size and malloc to get a larger buffer, and try again.
-     In the latter case, we use the returned information to build a
-     buffer of the correct size.  */
+     If it fails, it returns either -1 (older implementations) or the
+     number of characters (not counting the terminating \0) that
+     *would have* been written if there had been enough room (C99).
+     In the former case, we double available_size and malloc to get a
+     larger buffer, and try again.  In the latter case, we use the
+     returned information to build a buffer of the correct size.  */
 
   if (numwritten == -1)
     {