Newbie problem: Address out of bounds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux