X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Frecur.c;h=741ca823094a75c0fd760f44cd126dba88e81216;hb=766df9d4e9392045a4e5c730ed81e599b509557a;hp=c9f038aee1ae294cc505b83aba51ec400bef249e;hpb=39af614535e774a3ce81e42e43a96880d81bffd7;p=wget diff --git a/src/recur.c b/src/recur.c index c9f038ae..741ca823 100644 --- a/src/recur.c +++ b/src/recur.c @@ -196,8 +196,9 @@ retrieve_tree (const char *start_url) if (!start_url_parsed) { - logprintf (LOG_NOTQUIET, "%s: %s.\n", start_url, - url_error (up_error_code)); + char *error = url_error (start_url, up_error_code); + logprintf (LOG_NOTQUIET, "%s: %s.\n", start_url, error); + xfree (error); return URLERROR; } @@ -473,7 +474,7 @@ download_child_p (const struct urlpos *upos, struct url *parent, int depth, if (opt.spider) { char *referrer = url_string (parent, URL_AUTH_HIDE_PASSWD); - DEBUGP (("download_child_p: parent->url is: `%s'\n", parent->url)); + DEBUGP (("download_child_p: parent->url is: %s\n", quote (parent->url))); visited_url (url, referrer); xfree (referrer); }