Re: rpki-client: use strndup instead of malloc + memcpy

2020-12-03 Thread Claudio Jeker
On Thu, Dec 03, 2020 at 03:48:00PM +0100, Christian Weisgerber wrote: > Claudio Jeker: > > > In tal_parse() use strndup() to create the tal descr instead of the more > > complex malloc, memcpy version. Result is the same but the strndup version > > is a lot nicer. > > Yes, but... > > > ---

Re: rpki-client: use strndup instead of malloc + memcpy

2020-12-03 Thread Christian Weisgerber
Claudio Jeker: > In tal_parse() use strndup() to create the tal descr instead of the more > complex malloc, memcpy version. Result is the same but the strndup version > is a lot nicer. Yes, but... > --- tal.c 11 Oct 2020 12:39:25 - 1.22 > +++ tal.c 3 Dec 2020 12:00:25 - >

rpki-client: use strndup instead of malloc + memcpy

2020-12-03 Thread Claudio Jeker
In tal_parse() use strndup() to create the tal descr instead of the more complex malloc, memcpy version. Result is the same but the strndup version is a lot nicer. OK? -- :wq Claudio Index: tal.c === RCS file: