summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-11-25 11:38:30 +0000
committerBram Moolenaar <Bram@vim.org>2009-11-25 11:38:30 +0000
commit331dafdbb852fa13837b7399f5fb2dcb7e1fb9fe (patch)
treed36c344f0160f480c833a1ced53a767b0c0ada8b /src/ops.c
parent4592dee5765e9d1ef542d9252b7e9a3640800cba (diff)
downloadvim-331dafdbb852fa13837b7399f5fb2dcb7e1fb9fe.zip
updated for version 7.2-304
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ops.c b/src/ops.c
index 5d1b75f1e..5b12e68df 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -5597,7 +5597,10 @@ x11_export_final_selection()
vc.vc_type = CONV_NONE;
if (convert_setup(&vc, p_enc, (char_u *)"latin1") == OK)
{
- conv_str = string_convert(&vc, str, (int*)&len);
+ int intlen = len;
+
+ conv_str = string_convert(&vc, str, &intlen);
+ len = intlen;
if (conv_str != NULL)
{
vim_free(str);