diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-03-07 23:09:59 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-03-07 23:09:59 +0000 |
commit | 44ecf65f74749995760eea6a1082f59d94817cbe (patch) | |
tree | 6c91fd3c0e022903c963130a57c55478ceb6f41c /src/os_mswin.c | |
parent | fd91ecbbe05889d6d3bd266152373a90813ea3cf (diff) | |
download | vim-git-44ecf65f74749995760eea6a1082f59d94817cbe.tar.gz |
updated for version 7.0057
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r-- | src/os_mswin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index a5e10be49..c833113db 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -1411,6 +1411,7 @@ acp_to_enc(str, str_size, out, outlen) 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); } |