Skip to content

Minor output fix to use quote_n() instead of quote()

Sam G. requested to merge shamil.gumirov/wget:shamil/quote_fix/0 into master
  • src/ftp.c (in ftp_retrieve_list): change quote to quote_n
  • src/iri.c (in do_conversion): change quote to quote_n
  • src/url.c (in convert_fname): change quote to quote_n

The implementation quote() reuses the buffer it returns which leads to printing the same string for each quote() call in one output line. Instead, quote_n() should be used as highlighted in the doc: https://www.gnu.org/software/gnulib/manual/html_node/Quoting.html

Edited by Sam G.

Merge request reports