X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Flog.c;h=5de6da7d280597dc072db08c534f1f118a2be166;hb=4d7c5e087b2bc82c9f503dff003916d1047903ce;hp=f0083cc57002adbd496ea5255f748271c4253ef8;hpb=db9de5b07563e2f5d1e14a92f2cda4137cc2fb8a;p=wget diff --git a/src/log.c b/src/log.c index f0083cc5..5de6da7d 100644 --- a/src/log.c +++ b/src/log.c @@ -1,11 +1,11 @@ /* Messages logging. - Copyright (C) 1998-2005 Free Software Foundation, Inc. + Copyright (C) 1998-2006 Free Software Foundation, Inc. This file is part of GNU Wget. GNU Wget is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or +the Free Software Foundation; either version 3 of the License, or (at your option) any later version. GNU Wget is distributed in the hope that it will be useful, @@ -14,8 +14,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with Wget; if not, write to the Free Software Foundation, Inc., -51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. +along with Wget. If not, see . In addition, as a special exception, the Free Software Foundation gives permission to link the code of its release of Wget with the @@ -369,12 +368,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) {