astepano / rpms / vim

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