This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]