1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Doc fix.

This commit is contained in:
hniksic 2005-07-08 00:25:21 -07:00
parent 1fa77ff5b1
commit 83feeb3927

View File

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