On Sun, Aug 24, 2008 at 10:33 AM, Jan Minář <[EMAIL PROTECTED]> wrote:
> On Sun, Aug 24, 2008 at 7:26 AM, Jan Minář <[EMAIL PROTECTED]> wrote: > (...) > Thanks for reporting this. Forget my last email. This is the fix: It works fine after v3 patch. Thanks. > > > /* > * Now grab the chars in the identifier > */ > ! if (cmdchar == 'K' && !kp_help) > ! { > ! /* Sanitize properly */ > -! if ((p = vim_strsave_shellescape(ptr, TRUE)) == NULL || > -! (char_u *)vim_realloc(buf, STRLEN(buf) + STRLEN(p) + 1) == > NULL) > +! if ((p = vim_strsave_shellescape(ptr, TRUE)) == NULL) > ! /* Out of memory */ > ! return; > +! if ((buf = (char_u *)vim_realloc(buf, STRLEN(buf) + STRLEN(p) + 1)) > +! == NULL) > +! { > +! /* Out of memory */ > +! /* XXX Print an Out of Memory error message here */ > +! vim_free(p); > +! return; > +! } > ! STRCAT(buf, p); > ! vim_free(p); > ! } > > The updated patch (version 3) attached. > > Cheers, > Jan. > > > > -- Pınar Yanardağ (a.k.a PINguAR) http://pinguar.org _____________________________ I am rarely happier than when spending entire day programming my computer to perform automatically a task that it would otherwise take me a good ten seconds to do by hand. Douglas Adams --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---