|
Karsten Hopp |
84a0c0 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
84a0c0 |
Subject: patch 7.1.020
|
|
Karsten Hopp |
84a0c0 |
Fcc: outbox
|
|
Karsten Hopp |
84a0c0 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
84a0c0 |
Mime-Version: 1.0
|
|
Karsten Hopp |
84a0c0 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
84a0c0 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
84a0c0 |
------------
|
|
Karsten Hopp |
84a0c0 |
|
|
Karsten Hopp |
84a0c0 |
Patch 7.1.020
|
|
Karsten Hopp |
84a0c0 |
Problem: Reading from uninitialized memory when using a dialog. (Dominique
|
|
Karsten Hopp |
84a0c0 |
Pelle)
|
|
Karsten Hopp |
84a0c0 |
Solution: In msg_show_console_dialog() append a NUL after every appended
|
|
Karsten Hopp |
84a0c0 |
character.
|
|
Karsten Hopp |
84a0c0 |
Files: src/message.c
|
|
Karsten Hopp |
84a0c0 |
|
|
Karsten Hopp |
84a0c0 |
|
|
Karsten Hopp |
84a0c0 |
*** ../vim-7.1.019/src/message.c Thu May 10 18:49:39 2007
|
|
Karsten Hopp |
84a0c0 |
--- src/message.c Sun Jul 1 12:06:52 2007
|
|
Karsten Hopp |
84a0c0 |
***************
|
|
Karsten Hopp |
84a0c0 |
*** 3456,3466 ****
|
|
Karsten Hopp |
84a0c0 |
/* advance to next hotkey and set default hotkey */
|
|
Karsten Hopp |
84a0c0 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
84a0c0 |
if (has_mbyte)
|
|
Karsten Hopp |
84a0c0 |
! hotkp += (*mb_ptr2len)(hotkp);
|
|
Karsten Hopp |
84a0c0 |
else
|
|
Karsten Hopp |
84a0c0 |
#endif
|
|
Karsten Hopp |
84a0c0 |
++hotkp;
|
|
Karsten Hopp |
84a0c0 |
! (void)copy_char(r + 1, hotkp, TRUE);
|
|
Karsten Hopp |
84a0c0 |
if (dfltbutton)
|
|
Karsten Hopp |
84a0c0 |
--dfltbutton;
|
|
Karsten Hopp |
84a0c0 |
|
|
Karsten Hopp |
84a0c0 |
--- 3456,3466 ----
|
|
Karsten Hopp |
84a0c0 |
/* advance to next hotkey and set default hotkey */
|
|
Karsten Hopp |
84a0c0 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
84a0c0 |
if (has_mbyte)
|
|
Karsten Hopp |
84a0c0 |
! hotkp += STRLEN(hotkp);
|
|
Karsten Hopp |
84a0c0 |
else
|
|
Karsten Hopp |
84a0c0 |
#endif
|
|
Karsten Hopp |
84a0c0 |
++hotkp;
|
|
Karsten Hopp |
84a0c0 |
! hotkp[copy_char(r + 1, hotkp, TRUE)] = NUL;
|
|
Karsten Hopp |
84a0c0 |
if (dfltbutton)
|
|
Karsten Hopp |
84a0c0 |
--dfltbutton;
|
|
Karsten Hopp |
84a0c0 |
|
|
Karsten Hopp |
84a0c0 |
***************
|
|
Karsten Hopp |
84a0c0 |
*** 3493,3499 ****
|
|
Karsten Hopp |
84a0c0 |
*msgp++ = (dfltbutton == 1) ? ']' : ')';
|
|
Karsten Hopp |
84a0c0 |
|
|
Karsten Hopp |
84a0c0 |
/* redefine hotkey */
|
|
Karsten Hopp |
84a0c0 |
! (void)copy_char(r, hotkp, TRUE);
|
|
Karsten Hopp |
84a0c0 |
}
|
|
Karsten Hopp |
84a0c0 |
}
|
|
Karsten Hopp |
84a0c0 |
else
|
|
Karsten Hopp |
84a0c0 |
--- 3493,3499 ----
|
|
Karsten Hopp |
84a0c0 |
*msgp++ = (dfltbutton == 1) ? ']' : ')';
|
|
Karsten Hopp |
84a0c0 |
|
|
Karsten Hopp |
84a0c0 |
/* redefine hotkey */
|
|
Karsten Hopp |
84a0c0 |
! hotkp[copy_char(r, hotkp, TRUE)] = NUL;
|
|
Karsten Hopp |
84a0c0 |
}
|
|
Karsten Hopp |
84a0c0 |
}
|
|
Karsten Hopp |
84a0c0 |
else
|
|
Karsten Hopp |
84a0c0 |
***************
|
|
Karsten Hopp |
84a0c0 |
*** 3519,3526 ****
|
|
Karsten Hopp |
84a0c0 |
*msgp++ = ':';
|
|
Karsten Hopp |
84a0c0 |
*msgp++ = ' ';
|
|
Karsten Hopp |
84a0c0 |
*msgp = NUL;
|
|
Karsten Hopp |
84a0c0 |
- mb_ptr_adv(hotkp);
|
|
Karsten Hopp |
84a0c0 |
- *hotkp = NUL;
|
|
Karsten Hopp |
84a0c0 |
}
|
|
Karsten Hopp |
84a0c0 |
else
|
|
Karsten Hopp |
84a0c0 |
{
|
|
Karsten Hopp |
84a0c0 |
--- 3519,3524 ----
|
|
Karsten Hopp |
84a0c0 |
***************
|
|
Karsten Hopp |
84a0c0 |
*** 3555,3562 ****
|
|
Karsten Hopp |
84a0c0 |
msgp = confirm_msg + 1 + STRLEN(message);
|
|
Karsten Hopp |
84a0c0 |
hotkp = hotk;
|
|
Karsten Hopp |
84a0c0 |
|
|
Karsten Hopp |
84a0c0 |
! /* define first default hotkey */
|
|
Karsten Hopp |
84a0c0 |
! (void)copy_char(buttons, hotkp, TRUE);
|
|
Karsten Hopp |
84a0c0 |
|
|
Karsten Hopp |
84a0c0 |
/* Remember where the choices start, displaying starts here when
|
|
Karsten Hopp |
84a0c0 |
* "hotkp" typed at the more prompt. */
|
|
Karsten Hopp |
84a0c0 |
--- 3553,3561 ----
|
|
Karsten Hopp |
84a0c0 |
msgp = confirm_msg + 1 + STRLEN(message);
|
|
Karsten Hopp |
84a0c0 |
hotkp = hotk;
|
|
Karsten Hopp |
84a0c0 |
|
|
Karsten Hopp |
84a0c0 |
! /* Define first default hotkey. Keep the hotkey string NUL
|
|
Karsten Hopp |
84a0c0 |
! * terminated to avoid reading past the end. */
|
|
Karsten Hopp |
84a0c0 |
! hotkp[copy_char(buttons, hotkp, TRUE)] = NUL;
|
|
Karsten Hopp |
84a0c0 |
|
|
Karsten Hopp |
84a0c0 |
/* Remember where the choices start, displaying starts here when
|
|
Karsten Hopp |
84a0c0 |
* "hotkp" typed at the more prompt. */
|
|
Karsten Hopp |
84a0c0 |
*** ../vim-7.1.019/src/version.c Thu Jul 5 09:53:20 2007
|
|
Karsten Hopp |
84a0c0 |
--- src/version.c Thu Jul 5 10:09:34 2007
|
|
Karsten Hopp |
84a0c0 |
***************
|
|
Karsten Hopp |
84a0c0 |
*** 668,669 ****
|
|
Karsten Hopp |
84a0c0 |
--- 668,671 ----
|
|
Karsten Hopp |
84a0c0 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
84a0c0 |
+ /**/
|
|
Karsten Hopp |
84a0c0 |
+ 20,
|
|
Karsten Hopp |
84a0c0 |
/**/
|
|
Karsten Hopp |
84a0c0 |
|
|
Karsten Hopp |
84a0c0 |
--
|
|
Karsten Hopp |
84a0c0 |
BLACK KNIGHT: Come on you pansy!
|
|
Karsten Hopp |
84a0c0 |
[hah] [parry thrust]
|
|
Karsten Hopp |
84a0c0 |
[ARTHUR chops the BLACK KNIGHT's right arm off]
|
|
Karsten Hopp |
84a0c0 |
ARTHUR: Victory is mine! [kneeling]
|
|
Karsten Hopp |
84a0c0 |
We thank thee Lord, that in thy merc-
|
|
Karsten Hopp |
84a0c0 |
[Black Knight kicks Arthur in the head while he is praying]
|
|
Karsten Hopp |
84a0c0 |
The Quest for the Holy Grail (Monty Python)
|
|
Karsten Hopp |
84a0c0 |
|
|
Karsten Hopp |
84a0c0 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
84a0c0 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
84a0c0 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
84a0c0 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|