Re: [hackers] [sbase] getlines: Style fix || sin

From: <k0ga_AT_shike2.com>
Date: Wed, 11 Feb 2015 08:50:38 +0100

> }
> linelen = len + 1;
> - b->lines[b->nlines-1] = emalloc(linelen);
> - memcpy(b->lines[b->nlines-1], line, linelen);
> + b->lines[b->nlines - 1] = emalloc(linelen);
> + memcpy(b->lines[b->nlines - 1], line, linelen);
> }

What do you think about this version?

        b->lines[b->nlines - 1] = memcpy(emalloc(linelen), line, linelen);

Regards,
Received on Wed Feb 11 2015 - 08:50:38 CET

This archive was generated by hypermail 2.3.0 : Wed Feb 11 2015 - 09:00:12 CET