Karsten Hopp 507ce2
To: vim_dev@googlegroups.com
Karsten Hopp 507ce2
Subject: Patch 7.3.041
Karsten Hopp 507ce2
Fcc: outbox
Karsten Hopp 507ce2
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 507ce2
Mime-Version: 1.0
Karsten Hopp 507ce2
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 507ce2
Content-Transfer-Encoding: 8bit
Karsten Hopp 507ce2
------------
Karsten Hopp 507ce2
Karsten Hopp 507ce2
Patch 7.3.041
Karsten Hopp 507ce2
Problem:    Compiler warning for accessing mediumVersion. (Tony Mechelynck)
Karsten Hopp 507ce2
Solution:   Use the pointer instead of the array itself. (Dominique Pelle)
Karsten Hopp 507ce2
Files:	    src/version.c
Karsten Hopp 507ce2
Karsten Hopp 507ce2
Karsten Hopp 507ce2
*** ../vim-7.3.040/src/version.c	2010-10-27 13:37:39.000000000 +0200
Karsten Hopp 507ce2
--- src/version.c	2010-10-27 15:58:26.000000000 +0200
Karsten Hopp 507ce2
***************
Karsten Hopp 507ce2
*** 1342,1350 ****
Karsten Hopp 507ce2
  	if (highest_patch())
Karsten Hopp 507ce2
  	{
Karsten Hopp 507ce2
  	    /* Check for 9.9x or 9.9xx, alpha/beta version */
Karsten Hopp 507ce2
! 	    if (isalpha((int)mediumVersion[3]))
Karsten Hopp 507ce2
  	    {
Karsten Hopp 507ce2
! 		if (isalpha((int)mediumVersion[4]))
Karsten Hopp 507ce2
  		    sprintf((char *)vers + 5, ".%d%s", highest_patch(),
Karsten Hopp 507ce2
  							   mediumVersion + 5);
Karsten Hopp 507ce2
  		else
Karsten Hopp 507ce2
--- 1344,1352 ----
Karsten Hopp 507ce2
  	if (highest_patch())
Karsten Hopp 507ce2
  	{
Karsten Hopp 507ce2
  	    /* Check for 9.9x or 9.9xx, alpha/beta version */
Karsten Hopp 507ce2
! 	    if (isalpha((int)vers[3]))
Karsten Hopp 507ce2
  	    {
Karsten Hopp 507ce2
! 		if (isalpha((int)vers[4]))
Karsten Hopp 507ce2
  		    sprintf((char *)vers + 5, ".%d%s", highest_patch(),
Karsten Hopp 507ce2
  							   mediumVersion + 5);
Karsten Hopp 507ce2
  		else
Karsten Hopp 507ce2
*** ../vim-7.3.040/src/version.c	2010-10-27 13:37:39.000000000 +0200
Karsten Hopp 507ce2
--- src/version.c	2010-10-27 15:58:26.000000000 +0200
Karsten Hopp 507ce2
***************
Karsten Hopp 507ce2
*** 716,717 ****
Karsten Hopp 507ce2
--- 716,719 ----
Karsten Hopp 507ce2
  {   /* Add new patch number below this line */
Karsten Hopp 507ce2
+ /**/
Karsten Hopp 507ce2
+     41,
Karsten Hopp 507ce2
  /**/
Karsten Hopp 507ce2
Karsten Hopp 507ce2
-- 
Karsten Hopp 507ce2
ARTHUR:        I command you as King of the Britons to stand aside!
Karsten Hopp 507ce2
BLACK KNIGHT:  I move for no man.
Karsten Hopp 507ce2
                                  The Quest for the Holy Grail (Monty Python)
Karsten Hopp 507ce2
Karsten Hopp 507ce2
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 507ce2
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 507ce2
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 507ce2
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///