X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fconvert.c;h=fc858787f43fda92ebe7ce79572131eb8a0e434e;hp=c0144230b842d848b2b6978d5f5e9c7fa757e465;hb=cf3c678c8246fc326b69ae64b4e2766a69df5704;hpb=ec40efb27b38fade97c7531a106809ba89a10e2c diff --git a/src/convert.c b/src/convert.c index c0144230..fc858787 100644 --- a/src/convert.c +++ b/src/convert.c @@ -228,7 +228,7 @@ convert_links (const char *file, struct urlpos *links) } } - fm = read_file (file); + fm = wget_read_file (file); if (!fm) { logprintf (LOG_NOTQUIET, _("Cannot convert links in %s: %s\n"), @@ -248,7 +248,7 @@ convert_links (const char *file, struct urlpos *links) { logprintf (LOG_NOTQUIET, _("Unable to delete %s: %s\n"), quote (file), strerror (errno)); - read_file_free (fm); + wget_read_file_free (fm); return; } /* Now open the file for writing. */ @@ -257,7 +257,7 @@ convert_links (const char *file, struct urlpos *links) { logprintf (LOG_NOTQUIET, _("Cannot convert links in %s: %s\n"), file, strerror (errno)); - read_file_free (fm); + wget_read_file_free (fm); return; } @@ -342,7 +342,7 @@ convert_links (const char *file, struct urlpos *links) if (p - fm->content < fm->length) fwrite (p, 1, fm->length - (p - fm->content), fp); fclose (fp); - read_file_free (fm); + wget_read_file_free (fm); logprintf (LOG_VERBOSE, "%d-%d\n", to_file_count, to_url_count); }