Make comment consistent with code

This commit is contained in:
Nicolas Williams committed 2017-02-25 18:51:09 -06:00
1 parent 5d058fa416
commit 6e77b017c5
1 file changed
+1 -1
+1 -1
View File
@@ -52,7 +52,7 @@ FILE *fopen(const char *fname, const char *mode) {
MultiByteToWideChar(CP_UTF8, 0, fname, -1, wfname, sz);
sz = sizeof(wchar_t) * MultiByteToWideChar(CP_UTF8, 0, mode, -1, NULL, 0);
wchar_t *wmode = alloca(sz); // +2 is not needed, but just in case
wchar_t *wmode = alloca(sz + 2); // +2 is not needed, but just in case
MultiByteToWideChar(CP_UTF8, 0, mode, -1, wmode, sz);
return _wfopen(wfname, wmode);
}