winemac: Null-terminate an snprintf-ed key name buffer in case of short buffer.
ken at codeweavers.com
Thu Mar 28 05:40:58 CDT 2013
On Mar 28, 2013, at 2:26 AM, Per Johansson wrote:
> On Wed, Mar 27, 2013 at 7:22 PM, Ken Thomases <ken at codeweavers.com> wrote:
> This has probably been discussed before, but shouldn't snprintfW be
> safe against this kind of thing, the way POSIX snprintf is?
I actually checked the man page for snprintf() when I originally wrote that code, which is why I assumed snprintfW() would terminate it. So, my vote is for "yes". :)
More information about the wine-devel