Henrique de Moraes Holschuh <hmh(_at_)debian(_dot_)org> writes:
The patch fixes nearly all gcc -Wall warnings (most of them justified :P),
and changes lots of sprintfs to snprintf. Same for strcat -> strncat.
Your usage of strncat is wrong. Don't feel bad, though; nearly
everyone misuses it the same way. strncat is one of the worst
designed apis in existence. I'd suggest not using it at all.
strncpy, while not being much better, is at least understood by more
people, and works more or less the same way, assuming that you were to
use strncat correctly.
Speaking of the trouble of doing string manipulation properly in C,
one of the messages a bit ago was mentioning python and almost sounded
like fetchmail might be rewritten it in. Any hope of that being true?
Todd