Danek Duvall wrote:

> 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:

Strange that my compiler didn't complain.  We can leave out the type
casts, b_fname and b_sfname are already of type char_u *.
Thanks for the hint.

-- 
Violators can be fined, arrested or jailed for making ugly faces at a dog.
                [real standing law in Oklahoma, United States of America]

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
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

Raspunde prin e-mail lui