<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Download Code = Fail?</title>
<description> Well I have a problem here. (AGAIN!)
I am not giving the entire code but I will give you the part that fails.



printf(&quot;[+] Downloading file....&quot;);
sprintf(dest, FILE_DIRECTORY &quot;files&quot;);
for (i = 0; i &amp;lt; index; i++)
ptr += strlen(ptr) + 1;
sprintf(url, &quot;http://MYSITE.net/files/%s&quot;, ptr);
ret = downloadFile(url, dest);
if(ret &amp;lt; 0)
{
printf(&quot;Failed.\n&quot;);
goto out;
}
printf(&quot;Done!\n&quot;);

Every time I try and download it says Failed. :(
How can I fix this?</description><link>http://forum.wiibrew.org/read.php?11,17127,17127#msg-17127</link><lastBuildDate>Sun, 13 Sep 2026 12:51:20 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,17127,17149#msg-17149</guid>
<title>Re: Download Code = Fail?</title><link>http://forum.wiibrew.org/read.php?11,17127,17149#msg-17149</link><description><![CDATA[ You could check that the input to the function is correct. Otherwise, we need to see the function.]]></description>
<dc:creator>henke37</dc:creator>
<category>Coding</category><pubDate>Sun, 17 May 2009 12:41:09 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,17127,17130#msg-17130</guid>
<title>Re: Download Code = Fail?</title><link>http://forum.wiibrew.org/read.php?11,17127,17130#msg-17130</link><description><![CDATA[ Does not do any good without knowing what downloadFile is.]]></description>
<dc:creator>scanff</dc:creator>
<category>Coding</category><pubDate>Sun, 17 May 2009 08:33:52 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,17127,17127#msg-17127</guid>
<title>Download Code = Fail?</title><link>http://forum.wiibrew.org/read.php?11,17127,17127#msg-17127</link><description><![CDATA[ Well I have a problem here. (AGAIN!)<br />I am not giving the entire code but I will give you the part that fails.<br /><br /><pre class="bbcode">

	printf("[+] Downloading file....");
	sprintf(dest, FILE_DIRECTORY "files");
	for (i = 0; i &lt; index; i++)
		ptr += strlen(ptr) + 1;
	sprintf(url, "http://MYSITE.net/files/%s", ptr);
	ret = downloadFile(url, dest);
	if(ret &lt; 0)
	{
		printf("Failed.\n");
		goto out;
	}
	printf("Done!\n");</pre><br />Every time I try and download it says Failed. :(<br />How can I fix this?]]></description>
<dc:creator>pokeglobe</dc:creator>
<category>Coding</category><pubDate>Sun, 17 May 2009 07:37:51 +0200</pubDate></item>
</channel>
</rss>