snprintf() revisited, please comment

2005-08-23 Thread Moritz Grimm
Hello again, since I originally made my patches and especially during the course of dealing with the recent issues, I learned quite a lot. With my current understanding of things, I doubt the usefulness and validity of many parts of the patches and hope to solicit some comments about the

Re: snprintf() revisited, please comment

2005-08-23 Thread Ted Unangst
On Tue, 23 Aug 2005, Moritz Grimm wrote: While I wouldn't use sprintf() in any new code of my own, this does look safe to me. If my assumption of this being safe is correct, then patching it to use snprintf() is redundant and adds code that can contain bugs (that's what happened to me.) This