1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

aprintf, not asprintf.

This commit is contained in:
Gisle Vanem 2008-09-09 10:26:44 -07:00
parent a38d9e7e7a
commit b58816ed33
2 changed files with 8 additions and 4 deletions

View File

@ -1,11 +1,15 @@
2008-09-09 Gisle Vanem <gvanem@broadpark.no>
* url.c (url_error): Use aprintf, not asprintf.
2008-09-09 Micah Cowan <micah@cowan.name>
* init.c (home_dir): Save the calculated value for home,
to avoid duplicated work on repeated calls.
(wgetrc_file_name) [WINDOWS]: Define and initialize home var.
* build_info.c: Remove unnecessary extern vars system_wgetrc and
locale_dir.
* build_info.c, main.c: Remove unnecessary extern vars
system_wgetrc and locale_dir.
* main.c: Define program_name for lib/error.c.

View File

@ -900,9 +900,9 @@ url_error (const char *url, int error_code)
if ((p = strchr (scheme, ':')))
*p = '\0';
if (!strcasecmp (scheme, "https"))
asprintf (&error, _("HTTPS support not compiled in"));
error = aprintf (_("HTTPS support not compiled in"));
else
asprintf (&error, _(parse_errors[error_code]), quote (scheme));
error = aprintf (_(parse_errors[error_code]), quote (scheme));
xfree (scheme);
return error;