components/vim/vim72-patches/7.2.299
changeset 198 172fc01ce997
equal deleted inserted replaced
197:fd801ec0737c 198:172fc01ce997
       
     1 To: [email protected]
       
     2 Subject: Patch 7.2.299
       
     3 Fcc: outbox
       
     4 From: Bram Moolenaar <[email protected]>
       
     5 Mime-Version: 1.0
       
     6 Content-Type: text/plain; charset=UTF-8
       
     7 Content-Transfer-Encoding: 8bit
       
     8 ------------
       
     9 
       
    10 Patch 7.2.299
       
    11 Problem:    Crash when comment middle is longer than start.
       
    12 Solution:   Fix size computation. (Lech Lorens)
       
    13 Files:	    src/misc1.c
       
    14 
       
    15 
       
    16 *** ../vim-7.2.298/src/misc1.c	2009-11-11 17:30:05.000000000 +0100
       
    17 --- src/misc1.c	2009-11-17 15:59:28.000000000 +0100
       
    18 ***************
       
    19 *** 1121,1127 ****
       
    20   			    if (i != lead_repl_len)
       
    21   			    {
       
    22   				mch_memmove(p + lead_repl_len, p + i,
       
    23 ! 				       (size_t)(lead_len - i - (leader - p)));
       
    24   				lead_len += lead_repl_len - i;
       
    25   			    }
       
    26   			}
       
    27 --- 1121,1127 ----
       
    28   			    if (i != lead_repl_len)
       
    29   			    {
       
    30   				mch_memmove(p + lead_repl_len, p + i,
       
    31 ! 				       (size_t)(lead_len - i - (p - leader)));
       
    32   				lead_len += lead_repl_len - i;
       
    33   			    }
       
    34   			}
       
    35 *** ../vim-7.2.298/src/version.c	2009-11-17 14:57:19.000000000 +0100
       
    36 --- src/version.c	2009-11-17 16:01:07.000000000 +0100
       
    37 ***************
       
    38 *** 683,684 ****
       
    39 --- 683,686 ----
       
    40   {   /* Add new patch number below this line */
       
    41 + /**/
       
    42 +     299,
       
    43   /**/
       
    44 
       
    45 -- 
       
    46 BLACK KNIGHT: The Black Knight always triumphs. Have at you!
       
    47    ARTHUR takes his last leg off.  The BLACK KNIGHT's body lands upright.
       
    48 BLACK KNIGHT: All right, we'll call it a draw.
       
    49                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
       
    50 
       
    51  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
       
    52 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
       
    53 \\\        download, build and distribute -- http://www.A-A-P.org        ///
       
    54  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///