X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fconvert.c;h=8c1d007c9b3ce46b21604812516b56d9f872dcad;hp=04beea2455a67f2dd33ceaa46c0ef7e98a40b503;hb=908d7a4bcee5adb7d4768499282cc83075d0332e;hpb=277e840a0f8e3ec8800cfe7407fe3c16000bc622 diff --git a/src/convert.c b/src/convert.c index 04beea24..8c1d007c 100644 --- a/src/convert.c +++ b/src/convert.c @@ -382,7 +382,7 @@ construct_relative (const char *basefile, const char *linkfile) } /* Construct LINK as explained above. */ - link = (char *)xmalloc (3 * basedirs + strlen (linkfile) + 1); + link = xmalloc (3 * basedirs + strlen (linkfile) + 1); for (i = 0; i < basedirs; i++) memcpy (link + 3 * i, "../", 3); strcpy (link + 3 * i, linkfile); @@ -985,7 +985,7 @@ html_quote_string (const char *s) else if (*s == ' ') i += 4; /* #32; */ } - res = (char *)xmalloc (i + 1); + res = xmalloc (i + 1); s = b; for (p = res; *s; s++) {