From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14208 invoked by alias); 19 Sep 2003 01:44:42 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 14199 invoked from network); 19 Sep 2003 01:44:41 -0000 Received: from unknown (HELO web41404.mail.yahoo.com) (66.218.93.70) by sources.redhat.com with SMTP; 19 Sep 2003 01:44:41 -0000 Message-ID: <20030919014440.66527.qmail@web41404.mail.yahoo.com> Received: from [154.5.113.64] by web41404.mail.yahoo.com via HTTP; Thu, 18 Sep 2003 18:44:40 PDT Date: Fri, 19 Sep 2003 01:44:00 -0000 From: Andre Kirchner Subject: Newbie problem: Address out of bounds To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-09/txt/msg00220.txt.bz2 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
". 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