]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.041 v7.3.041
authorBram Moolenaar <Bram@vim.org>
Wed, 27 Oct 2010 14:01:27 +0000 (16:01 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 27 Oct 2010 14:01:27 +0000 (16:01 +0200)
Problem:    Compiler warning for accessing mediumVersion. (Tony Mechelynck)
Solution:   Use the pointer instead of the array itself. (Dominique Pelle)

src/version.c

index 3285341ee423e2e6690e45bdee060e98fdcb559c..83ced4d12ab70dc88809c567d5a411d156159003 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    41,
 /**/
     40,
 /**/
@@ -1342,9 +1344,9 @@ do_intro_line(row, mesg, add_version, attr)
        if (highest_patch())
        {
            /* Check for 9.9x or 9.9xx, alpha/beta version */
-           if (isalpha((int)mediumVersion[3]))
+           if (isalpha((int)vers[3]))
            {
-               if (isalpha((int)mediumVersion[4]))
+               if (isalpha((int)vers[4]))
                    sprintf((char *)vers + 5, ".%d%s", highest_patch(),
                                                           mediumVersion + 5);
                else