Newbie problem: Address out of bounds

Andre Kirchner sieg1974@yahoo.com
Fri Sep 19 01:44:00 GMT 2003


Hi,

does anyone know what is wrong with the following
code? Somehow when the program gets inside the "if"
block it loses the value of webAddress( which is a
char[ 256 ] ), and the debuger ( I'm using KDevelop )
shows this message "webAddress=0x2f3c3e61 <Address
0x2f3c3e61 out of bounds >".

Thanks a lot,

Andre


while( getLine( theLine, sockfd ) == 0 )
  if( checkString( theLine, "href=", ".jpg" ) == 0 )
  {
    bzero( newLink, 256 );
    bzero( newTarget, 256 );

    getTargetName( newTarget, theLine );
    replaceTarget( newLink, webAddress, newTarget );
    fprintf( theFile, "%s\n", newLink );
  }

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the Gcc-help mailing list