Karsten Hopp 9c3490
To: vim-dev@vim.org
Karsten Hopp 9c3490
Subject: Patch 7.1.239
Karsten Hopp 9c3490
Fcc: outbox
Karsten Hopp 9c3490
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 9c3490
Mime-Version: 1.0
Karsten Hopp 9c3490
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 9c3490
Content-Transfer-Encoding: 8bit
Karsten Hopp 9c3490
------------
Karsten Hopp 9c3490
Karsten Hopp 9c3490
Patch 7.1.239 (after 7.1.233)
Karsten Hopp 9c3490
Problem:    Compiler warning for sprintf() argument.
Karsten Hopp 9c3490
Solution:   Add a typecast. (Nico Weber)
Karsten Hopp 9c3490
Files:	    src/ex_getln.c
Karsten Hopp 9c3490
Karsten Hopp 9c3490
Karsten Hopp 9c3490
*** ../vim-7.1.238/src/ex_getln.c	Sat Jan 19 15:55:51 2008
Karsten Hopp 9c3490
--- src/ex_getln.c	Tue Jan 22 12:40:54 2008
Karsten Hopp 9c3490
***************
Karsten Hopp 9c3490
*** 4694,4700 ****
Karsten Hopp 9c3490
      {
Karsten Hopp 9c3490
  	/* Completion from Insert mode, pass fake arguments. */
Karsten Hopp 9c3490
  	keep = 0;
Karsten Hopp 9c3490
! 	sprintf((char *)num, "%d", STRLEN(xp->xp_pattern));
Karsten Hopp 9c3490
  	args[1] = xp->xp_pattern;
Karsten Hopp 9c3490
      }
Karsten Hopp 9c3490
      else
Karsten Hopp 9c3490
--- 4694,4700 ----
Karsten Hopp 9c3490
      {
Karsten Hopp 9c3490
  	/* Completion from Insert mode, pass fake arguments. */
Karsten Hopp 9c3490
  	keep = 0;
Karsten Hopp 9c3490
! 	sprintf((char *)num, "%d", (int)STRLEN(xp->xp_pattern));
Karsten Hopp 9c3490
  	args[1] = xp->xp_pattern;
Karsten Hopp 9c3490
      }
Karsten Hopp 9c3490
      else
Karsten Hopp 9c3490
*** ../vim-7.1.238/src/version.c	Tue Jan 22 11:58:41 2008
Karsten Hopp 9c3490
--- src/version.c	Tue Jan 22 12:42:36 2008
Karsten Hopp 9c3490
***************
Karsten Hopp 9c3490
*** 668,669 ****
Karsten Hopp 9c3490
--- 668,671 ----
Karsten Hopp 9c3490
  {   /* Add new patch number below this line */
Karsten Hopp 9c3490
+ /**/
Karsten Hopp 9c3490
+     239,
Karsten Hopp 9c3490
  /**/
Karsten Hopp 9c3490
Karsten Hopp 9c3490
-- 
Karsten Hopp 9c3490
We apologise again for the fault in the subtitles.  Those responsible for
Karsten Hopp 9c3490
sacking the people who have just been sacked have been sacked.
Karsten Hopp 9c3490
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 9c3490
Karsten Hopp 9c3490
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 9c3490
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 9c3490
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 9c3490
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///