Re: [bug-patch] Replace some loops with string.h functions

2018-10-26 Thread Bruno Haible
Hi, Kapus Timotej wrote: > @@ -488,8 +488,7 @@ ifetch (lin line, bool whichbuf, size_t *psize) > if (line == input_lines) > *psize = last_line_size; > else { > - for (q = p; *q++ != '\n'; ) > - /* do nothing */ ; > + q = rawmemchr(p,'\n') + 1; > *psize = q - p; > } >

Re: [bug-patch] Replace some loops with string.h functions

2018-10-26 Thread Kapus, Timotej
Hi, Thanks for your detailed reply. I think I agree with your point about strspn not being widely used. I've added the line to bootstrap.conf as you suggested and I'm pasting the patch with just rawmemchr replacements below. Thanks, Timotej >From a9df6914b14f85d56f09c70084bc4b45f02e9a43