Re: [PATCH] Add test-tr: poor-man tr
- From
- Alf Clement <alf.clement@gmail.com>
- Date
- Jun 12, 2008, 06:32 UTC
- Message-ID
- <556d90580806112332s25f76caajaaafa8e16e895922@mail.gmail.com>
- In-Reply-To
- <20080611182501.GA3344@steel.home>
Hi Alex,
> +static unsigned char *unquote(const char *s, unsigned *len)
> +{
> + unsigned char *result = malloc(strlen(s)), *r = result;are you sure that the buffer is big enough?? Nomally you do a malloc(strlen(s)+1).
CU, Alf