Suggestion from Larry: no format string, use fputs instead.

This commit is contained in:
Eric Andersen 2001-05-15 20:11:49 +00:00
parent 50ae3102fb
commit 9abfe85e96
2 changed files with 4 additions and 4 deletions

View File

@ -325,7 +325,7 @@ int wget_main(int argc, char **argv)
if (do_continue) if (do_continue)
fprintf(sfp, "Range: bytes=%ld-\r\n", beg_range); fprintf(sfp, "Range: bytes=%ld-\r\n", beg_range);
if(extra_headers_left < sizeof(extra_headers)) if(extra_headers_left < sizeof(extra_headers))
fprintf(sfp,extra_headers); fputs(extra_headers,sfp);
fprintf(sfp,"Connection: close\r\n\r\n"); fprintf(sfp,"Connection: close\r\n\r\n");
/* /*
@ -813,7 +813,7 @@ progressmeter(int flag)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: wget.c,v 1.39 2001/05/15 17:51:37 andersen Exp $ * $Id: wget.c,v 1.40 2001/05/15 20:11:49 andersen Exp $
*/ */

4
wget.c
View File

@ -325,7 +325,7 @@ int wget_main(int argc, char **argv)
if (do_continue) if (do_continue)
fprintf(sfp, "Range: bytes=%ld-\r\n", beg_range); fprintf(sfp, "Range: bytes=%ld-\r\n", beg_range);
if(extra_headers_left < sizeof(extra_headers)) if(extra_headers_left < sizeof(extra_headers))
fprintf(sfp,extra_headers); fputs(extra_headers,sfp);
fprintf(sfp,"Connection: close\r\n\r\n"); fprintf(sfp,"Connection: close\r\n\r\n");
/* /*
@ -813,7 +813,7 @@ progressmeter(int flag)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: wget.c,v 1.39 2001/05/15 17:51:37 andersen Exp $ * $Id: wget.c,v 1.40 2001/05/15 20:11:49 andersen Exp $
*/ */