Re: how to replace a substring in a string using C?
- From: Netocrat <netocrat@xxxxxxxxxxx>
- Date: Sun, 30 Oct 2005 20:48:10 GMT
On Sun, 30 Oct 2005 20:40:58 +0000, Netocrat wrote:
[...]
> ret = malloc(i + count * (newlen - oldlen));
Off-by-one; should be:
ret = malloc(i + 1 + count * (newlen - oldlen));
--
http://members.dodo.com.au/~netocrat
.
- References:
- Re: how to replace a substring in a string using C?
- From: Netocrat
- Re: how to replace a substring in a string using C?
- Prev by Date: Re: how to replace a substring in a string using C?
- Next by Date: Re: how to get 0.000001 with printf?
- Previous by thread: Re: how to replace a substring in a string using C?
- Next by thread: Re: Channel
- Index(es):