commit | 44ecf65f74749995760eea6a1082f59d94817cbe | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Mar 07 23:09:59 2005 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Mar 07 23:09:59 2005 +0000 |
tree | 6c91fd3c0e022903c963130a57c55478ceb6f41c | |
parent | fd91ecbbe05889d6d3bd266152373a90813ea3cf [diff] [blame] |
updated for version 7.0057
diff --git a/src/os_mswin.c b/src/os_mswin.c index a5e10be..c833113 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c
@@ -1411,6 +1411,7 @@ MultiByteToWideChar_alloc(GetACP(), 0, str, str_size, &widestr, outlen); if (widestr != NULL) { + ++*outlen; /* Include the 0 after the string */ *out = ucs2_to_enc((short_u *)widestr, outlen); vim_free(widestr); }