[Webkit-unassigned] [Bug 41553] Make StringExtras.h versions of snprintf and vsnprintf match the unix versions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 2 17:53:39 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=41553





--- Comment #2 from Darin Adler <darin at apple.com>  2010-07-02 17:53:39 PST ---
(From update of attachment 60424)
> +    // In the case where the string entirely filled the buffer, _vsnprintf will not
> +    // null-terminate it, but vsnprintf must.
> +    if (count > 0)
> +        buffer[count - 1] = '\0';

But what about the case where Windows *does* have vsnprintf, but it has the wrong behavior and does not terminate the buffer with a nul character? As I understand it, this is the case with MSVC 8 and newer!

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list