Mercurial > vim
diff src/os_mswin.c @ 188:041a413d626d
updated for version 7.0057
author | vimboss |
---|---|
date | Mon, 07 Mar 2005 23:09:59 +0000 |
parents | 7e70fc748752 |
children | 2463194c8cdd |
line wrap: on
line diff
--- 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); }