Re: [hackers] [sbase] getlines: Style fix || sin
> }
> 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