delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/12/07:17:55

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Waldemar Schultz <schultz AT ma DOT tum DOT de>
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
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019