This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Newbie problem: Address out of bounds
- From: Andre Kirchner <sieg1974 at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 18 Sep 2003 18:44:40 -0700 (PDT)
- Subject: Newbie problem: Address out of bounds
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