delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
Message-ID: | <3c175119@news.starhub.net.sg> |
From: | Rob Kramer <robk AT starhub DOT net DOT sg> |
Subject: | Re: gcc bug or am I blind? |
Newsgroups: | comp.os.msdos.djgpp |
Date: | Wed, 12 Dec 2001 20:41:15 +0800 |
References: | <3C17418A DOT 85364005 AT ma DOT tum DOT de> <3C174718 DOT EF323B32 AT ma DOT tum DOT de> |
Lines: | 11 |
User-Agent: | KNode/0.6.1 |
MIME-Version: | 1.0 |
NNTP-Posting-Host: | 202.156.225.185 |
X-Trace: | 12 Dec 2001 20:44:10 +0800, 202.156.225.185 |
Organization: | StarHub Internet Pte Ltd |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Waldemar Schultz wrote: > of course: dest=realloc(dest,(1+strlen(arg))*sizeof(*dest)); > but the problem persists. How about: dest = realloc (dest, (strlen (dest) + strlen (arg) + 1) * sizeof (char)); Cheers, Rob
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |