Hari G wrote:

> On Oct 23, 6:41 pm, Bram Moolenaar <[email protected]> wrote:
> > [repost, somehow it didn't show up yet]
> >
> > Patch 7.3.034
> > Problem:    Win32: may be loading .dll from the wrong directory.
> > Solution:   Go to the Vim executable directory when opening a library.
> > Files:      src/gui_w32.c, src/if_lua.c, src/if_mzsch.c, src/if_perl.xs,
> >             src/if_python.c, src/if_python3.c, src/if_ruby.c, src/mbyte.c,
> >             src/os_mswin.c, src/os_win32.c, src/proto/os_win32.pro
> 
> > !           if (STRLEN(p) + STRLEN(exe_path) + 2 < MAXPATHL);
> 
> The stray semicolon at the end causes the following block to be
> executed always resulting in a crash when $PATH is bigger than
> MAXPATHL. Further exe_path would not be appended to $PATH if the
> resultant path is quite long (possible with apps clobbering the PATH
> variable); this was not the case before; is this a desired change or
> just accidental?

That's a mistake.  Glad you spotted it.  Strange that the compiler
didn't give a warning.

-- 
    [clop clop]
MORTICIAN:  Who's that then?
CUSTOMER:   I don't know.
MORTICIAN:  Must be a king.
CUSTOMER:   Why?
MORTICIAN:  He hasn't got shit all over him.
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.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