dcr8520 wrote:
joder Zurt k cosas pides.. :-D
well, step by step... mmm...
I get the file httpget.c from the AmiTCP 4.3 SDK, and was edited a bit:
try compiling this:
+++++++++++++++++++C+U+T+++H+E+R+E++++++++++++++++++++++++++++++++++
Well, I don't know where p5 put their ROM, but if they need special things down right from the get go, then sticking it at address 0 would seem prudent. In that case, this text could represent a read from address 0 probably from a NULL pointer.
I didn't find that particular bug, but you have bugs that could be causing the kind of corruption that could cause this later (and somewhat randomly). For example...
//int httpget(char * url)
int main()
{
char buf[1024], *url;
char * p, * u;
int i, port = 80, sd;
*p = '\0';
if(!(init())) err("Can't open LIB!");
if ((sd = do_connect("www.amiga.com", port)) < 0) err("err conectando!");
*p = '/';
Here you dereference p without assigning it an address to point to.
i.e. you set the address that p points to the value char 0 before you set p to an address. So, somewhere in memory, and you cannot tell where, you are altering a byte!!
Your compiler should be warning you.