]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.558 v7.3.558
authorBram Moolenaar <Bram@vim.org>
Wed, 20 Jun 2012 10:40:08 +0000 (12:40 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 20 Jun 2012 10:40:08 +0000 (12:40 +0200)
Problem:    Memory access error. (Gary Johnson)
Solution:   Allocate one more byte. (Dominique Pelle)

src/misc1.c
src/version.c

index 1519e97b3166c121cfa1c28b4794f26414172308..10a0fc0659880696df20d32d20f23eedaa0d6f24 100644 (file)
@@ -460,7 +460,7 @@ get_number_indent(lnum)
         *
         * I'm not sure if regmmatch_T (multi-match) is needed in this case.
         * It may be true that this section would work properly using the
-        * regmatch_T code above, in which case, these two seperate sections
+        * regmatch_T code above, in which case, these two separate sections
         * should be consolidated w/ FEAT_COMMENTS making lead_len > 0...
         */
 #endif
@@ -1053,9 +1053,9 @@ open_line(dir, flags, second_line_indent)
        }
        if (lead_len)
        {
-           /* allocate buffer (may concatenate p_exta later) */
+           /* allocate buffer (may concatenate p_extra later) */
            leader = alloc(lead_len + lead_repl_len + extra_space + extra_len
-                        + (second_line_indent > 0 ? second_line_indent : 0));
+                    + (second_line_indent > 0 ? second_line_indent : 0) + 1);
            allocated = leader;             /* remember to free it later */
 
            if (leader == NULL)
@@ -3342,7 +3342,7 @@ get_keystroke()
            buf = alloc(buflen);
        else if (maxlen < 10)
        {
-           /* Need some more space. This migth happen when receiving a long
+           /* Need some more space. This might happen when receiving a long
             * escape sequence. */
            buflen += 100;
            buf = vim_realloc(buf, buflen);
index bfa3be2c17248dc9f640962413f7a9f809d44d49..2378abb40cc199a6cf6aa28c6deaabbd624fcde2 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    558,
 /**/
     557,
 /**/