Re: TLS Certificates
Lars Ingebrigtsen <[email protected]>
| Newsgroups | gmane.discuss |
|---|---|
| Organization | Programmerer Ingebrigtsen |
| Message-ID | <[email protected]> |
Adam Sjøgren <[email protected]> writes: > Wait, couldn't this easily output the header? > > --- nnrpd/post.c 2018-03-18 21:03:32.000000000 +0100 > +++ nnrpd/post.c_new 2019-01-21 20:06:00.441110613 +0100 > @@ -642,7 +642,7 @@ > if (!IsValidHeaderField(OtherHeaders[i])) { > snprintf(Error, sizeof(Error), > "Invalid syntax encountered in headers (unexpected " > - "byte, no colon-space, or empty content line)"); > + "byte, no colon-space, or empty content line): %s", OtherHeaders[i]); That does indeed look like it would help with usability a lot. > I've probably sinned against the Gods of boundary checks and C-pointers > here; I can't remember the last time I wrote C. :-) > BUT IT COMPILES, SHIP IT! You should send a patch to Russ Allbery. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no