[m-rev.] diff: fix an XXX with trace count files on Windows

Zoltan Somogyi zoltan.somogyi at runbox.com
Sun Oct 22 21:08:21 AEDT 2023


On 2023-10-22 20:57 +11:00 AEDT, "Julien Fischer" <jfischer at opturion.com> wrote:
> +    #if defined(MR_WIN32) && !defined(MR_CYGWIN)
> +        fp = _wfopen(MR_utf8_to_wide(name), L"w");

I looked up _wfopen, and saw a mention of a "secure version".
But the link

https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/fopen-s-wfopen-s?view=msvc-170

while including lots of detail, does not tell me what extra security _wfopen_s
adds to _wfopen. Do you know?

Zoltan.


More information about the reviews mailing list