On Wed, Oct 03, 2012 at 06:25:17PM +0200, Bram Moolenaar wrote:
>
> Patch 7.3.677
> Problem: buf_spname() is used inconsistently.
> Solution: Make the return type a char_u pointer. Check the size of the
> returned string.
> Files: src/buffer.c, src/proto/buffer.pro, src/ex_cmds2.c,
> src/ex_docmd.c, src/memline.c, src/screen.c
This breaks for me, building on Solaris 11 with the Studio compilers, with
the following error:
"edit.c", line 4196: operands have incompatible types:
pointer to unsigned char ":" pointer to char
Here's a fix, though I'm not positive I tested it properly:
diff --git a/src/edit.c b/src/edit.c
--- a/src/edit.c
+++ b/src/edit.c
@@ -4194,8 +4194,8 @@ ins_compl_get_exp(ini)
ins_buf->b_fname == NULL
? buf_spname(ins_buf)
: ins_buf->b_sfname == NULL
- ? (char *)ins_buf->b_fname
- : (char *)ins_buf->b_sfname);
+ ? (char_u *)ins_buf->b_fname
+ : (char_u *)ins_buf->b_sfname);
(void)msg_trunc_attr(IObuff, TRUE, hl_attr(HLF_R));
}
else if (*e_cpt == NUL)
Thanks,
Danek
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php