home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.1.267 < prev    next >
Encoding:
Internet Message Format  |  2002-12-27  |  1.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.267
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.267
  11. Problem:    Using "p" to paste into a Visual selected area may cause a crash.
  12. Solution:   Allocate enough memory for saving the register contents. (Muraoka
  13.         Taro)
  14. Files:        src/ops.c
  15.  
  16.  
  17. *** ../vim61.266/src/ops.c    Sun Oct 27 20:54:51 2002
  18. --- src/ops.c    Sat Dec 28 17:27:29 2002
  19. ***************
  20. *** 868,874 ****
  21.       if (copy)
  22.       {
  23.           /* If we run out of memory some or all of the lines are empty. */
  24. !         reg->y_array = (char_u **)alloc((unsigned)sizeof(char_u *));
  25.           if (reg->y_array != NULL)
  26.           {
  27.           for (i = 0; i < reg->y_size; ++i)
  28. --- 868,875 ----
  29.       if (copy)
  30.       {
  31.           /* If we run out of memory some or all of the lines are empty. */
  32. !         reg->y_array = (char_u **)alloc((unsigned)(sizeof(char_u *)
  33. !                                    * reg->y_size));
  34.           if (reg->y_array != NULL)
  35.           {
  36.           for (i = 0; i < reg->y_size; ++i)
  37. *** ../vim61.266/src/version.c    Mon Dec 23 22:54:36 2002
  38. --- src/version.c    Sat Dec 28 17:30:41 2002
  39. ***************
  40. *** 608,609 ****
  41. --- 608,611 ----
  42.   {   /* Add new patch number below this line */
  43. + /**/
  44. +     267,
  45.   /**/
  46.  
  47. -- 
  48. If Microsoft would build a car...
  49. ... You'd have to press the "Start" button to turn the engine off.
  50.  
  51.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  52. ///          Creator of Vim - Vi IMproved -- http://www.vim.org          \\\
  53. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  54.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  55.