diff options
author | Nicolas Williams <nico@cryptonector.com> | 2017-02-25 14:24:43 -0600 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2017-02-25 18:51:09 -0600 |
commit | 6e77b017c58cdcccfde45bfd72349ef9e7960f90 (patch) | |
tree | fef74a32eb48abb3e55dbfe61fb4c826a1bde7d9 | |
parent | 5d058fa416a26593e411bc10c391262b9dc5e9fa (diff) |
Make comment consistent with code
-rw-r--r-- | src/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |