Re: cvs: php4 /main SAPI.c
| From: | Moriyoshi Koizumi | Date: | Tue, 11 Feb 2003 23:13:49 +0000 |
| Subject: | Re: cvs: php4 /main SAPI.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-18696@lists.php.net to get a copy of this message | ||
Sascha Schumann <sascha@schumann.cx> wrote:
> > > And the "fix" broke the header code on systems with old style snprintf.
> >
> > Doesn't the same apply to sprintf() ?
>
> Nope, that's safe.
IIRC snprintf() of any implementations return the correct number of valid
bytes unless the length of result would exceed the specified size. I need
some clarification here so I can find snprintf related bugs elsewhere.
Moriyoshi