X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Waldemar Schultz Newsgroups: comp.os.msdos.djgpp Subject: Re: gcc bug or am I blind? Date: Wed, 12 Dec 2001 13:01:28 +0100 Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany) Lines: 18 Message-ID: <3C174718.EF323B32@ma.tum.de> References: <3C17418A DOT 85364005 AT ma DOT tum DOT de> NNTP-Posting-Host: pcritter14.mathematik.tu-muenchen.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: wsc10.lrz-muenchen.de 1008158484 13209 131.159.68.151 (12 Dec 2001 12:01:24 GMT) X-Complaints-To: news AT lrz-muenchen DOT de NNTP-Posting-Date: 12 Dec 2001 12:01:24 GMT X-Mailer: Mozilla 4.75 [de] (Win98; U) X-Accept-Language: de,en-US To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Waldemar Schultz schrieb: > > Hi, > Please have a look on this program > > //M_CAT.c --snip > dest=realloc(dest,strlen(arg)*sizeof(*dest)); of course: dest=realloc(dest,(1+strlen(arg))*sizeof(*dest)); but the problem persists. sorry for any inconvenience. -- Gruss Waldemar Schultz. schultz AT ma DOT tum DOT de Technische Universität München, Zentrum Mathematik M1, D 80290 München Tel: +49 (0)89 2892 8226 FAX: +49 (0)89 2892 8228