aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-05-04 08:46:40 +0200
committerGitHub <noreply@github.com>2017-05-04 08:46:40 +0200
commit2e3b78d10b54db9a0fe054292903e3925368c18d (patch)
tree40d7bebf5cf0bcf556289f83cf84df91574d6df2 /src
parent2b3cb2c448f9a7ce6132d2d0423c0d1cf627a0d3 (diff)
parentb9dba14fa32f49b145d1d415f2e869140a2a6a5c (diff)
downloadrneovim-2e3b78d10b54db9a0fe054292903e3925368c18d.tar.gz
rneovim-2e3b78d10b54db9a0fe054292903e3925368c18d.tar.bz2
rneovim-2e3b78d10b54db9a0fe054292903e3925368c18d.zip
Merge #6670 from jamessan/conversion-overflow
Diffstat (limited to 'src')
-rw-r--r--src/nvim/mbyte.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c
index b21ec944c1..8a68ce0915 100644
--- a/src/nvim/mbyte.c
+++ b/src/nvim/mbyte.c
@@ -1367,7 +1367,7 @@ int utf16_to_utf8(const WCHAR *strw, char **str)
return GetLastError();
}
- *str = xmalloc(utf8_len);
+ *str = xmallocz(utf8_len);
// Convert to UTF-8.
utf8_len = WideCharToMultiByte(CP_UTF8,