Re: [RFA] Fix documentation of snprintf and vsnprintf

2009-05-23 Thread Dave Korn
Eli Zaretskii wrote: > The current documentation of these two functions is misleading, and can > easily cause off-by-one bugs, if one follows it to the letter and > doesn't double-check with what the source actually does. > > I tried to be more accurate in the patch below. > > OK? I think it's

[RFA] Fix documentation of snprintf and vsnprintf

2009-05-23 Thread Eli Zaretskii
The current documentation of these two functions is misleading, and can easily cause off-by-one bugs, if one follows it to the letter and doesn't double-check with what the source actually does. I tried to be more accurate in the patch below. OK? 2009-05-23 Eli Zaretskii * snprintf.c