On wo, 2016-03-16 at 12:42 +0100, Michal Marek wrote:
> For this particular use, it's probably easier to just write
>
> conf_warning("unexpected data: %.*s",
> (int)strcspn(line, "\r\n"), line);OK. (Next time I'll try listen to the voice in my head whispering: "There must be an easier way to do this.".) > Or do you see more use cases for the chomp function? No. > No matter how the string is constructed, I like the verbose warning :) I'll respin and resend (in a few hours). Thanks, Paul Bolle

