Hi, Ramkumar Ramachandra wrote: > 1. Implement the strscpn() using two strchrnul() calls. > 2. Drop this patch and use strbuf to replace the fixed-size buffer. > > I think I'll go with the second option. What do you think? > [...] Er, I have an 'eol' which I'm not using. Making sure that 'eol' is valid is good enough to avoid unexpected failures: if strchrnul() is able to find a '\n', strcspn() should have no trouble finding either a ' ' or '\n' (whichever comes first). Sorry for the nonsense. -- Ram -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html