Karsten Hopp a2e2c3
To: vim-dev@vim.org
Karsten Hopp a2e2c3
Subject: Patch 7.2.054
Karsten Hopp a2e2c3
Fcc: outbox
Karsten Hopp a2e2c3
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp a2e2c3
Mime-Version: 1.0
Karsten Hopp a2e2c3
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp a2e2c3
Content-Transfer-Encoding: 8bit
Karsten Hopp a2e2c3
------------
Karsten Hopp a2e2c3
Karsten Hopp a2e2c3
Patch 7.2.054
Karsten Hopp a2e2c3
Problem:    Compilation warnings for format in getchar.c.
Karsten Hopp a2e2c3
Solution:   Use fputs() instead of fprintf().  (Dominique Pelle)
Karsten Hopp a2e2c3
Files:	    src/getchar.c
Karsten Hopp a2e2c3
Karsten Hopp a2e2c3
Karsten Hopp a2e2c3
*** ../vim-7.2.053/src/getchar.c	Tue Jul 22 18:58:23 2008
Karsten Hopp a2e2c3
--- src/getchar.c	Thu Nov 27 22:38:24 2008
Karsten Hopp a2e2c3
***************
Karsten Hopp a2e2c3
*** 4702,4708 ****
Karsten Hopp a2e2c3
  			return FAIL;
Karsten Hopp a2e2c3
  		    if (mp->m_noremap != REMAP_YES && fprintf(fd, "nore") < 0)
Karsten Hopp a2e2c3
  			return FAIL;
Karsten Hopp a2e2c3
! 		    if (fprintf(fd, cmd) < 0)
Karsten Hopp a2e2c3
  			return FAIL;
Karsten Hopp a2e2c3
  		    if (buf != NULL && fputs(" <buffer>", fd) < 0)
Karsten Hopp a2e2c3
  			return FAIL;
Karsten Hopp a2e2c3
--- 4702,4708 ----
Karsten Hopp a2e2c3
  			return FAIL;
Karsten Hopp a2e2c3
  		    if (mp->m_noremap != REMAP_YES && fprintf(fd, "nore") < 0)
Karsten Hopp a2e2c3
  			return FAIL;
Karsten Hopp a2e2c3
! 		    if (fputs(cmd, fd) < 0)
Karsten Hopp a2e2c3
  			return FAIL;
Karsten Hopp a2e2c3
  		    if (buf != NULL && fputs(" <buffer>", fd) < 0)
Karsten Hopp a2e2c3
  			return FAIL;
Karsten Hopp a2e2c3
***************
Karsten Hopp a2e2c3
*** 4801,4807 ****
Karsten Hopp a2e2c3
  	    }
Karsten Hopp a2e2c3
  	    if (IS_SPECIAL(c) || modifiers)	/* special key */
Karsten Hopp a2e2c3
  	    {
Karsten Hopp a2e2c3
! 		if (fprintf(fd, (char *)get_special_key_name(c, modifiers)) < 0)
Karsten Hopp a2e2c3
  		    return FAIL;
Karsten Hopp a2e2c3
  		continue;
Karsten Hopp a2e2c3
  	    }
Karsten Hopp a2e2c3
--- 4801,4807 ----
Karsten Hopp a2e2c3
  	    }
Karsten Hopp a2e2c3
  	    if (IS_SPECIAL(c) || modifiers)	/* special key */
Karsten Hopp a2e2c3
  	    {
Karsten Hopp a2e2c3
! 		if (fputs((char *)get_special_key_name(c, modifiers), fd) < 0)
Karsten Hopp a2e2c3
  		    return FAIL;
Karsten Hopp a2e2c3
  		continue;
Karsten Hopp a2e2c3
  	    }
Karsten Hopp a2e2c3
*** ../vim-7.2.053/src/version.c	Fri Nov 28 11:47:14 2008
Karsten Hopp a2e2c3
--- src/version.c	Fri Nov 28 12:02:48 2008
Karsten Hopp a2e2c3
***************
Karsten Hopp a2e2c3
*** 678,679 ****
Karsten Hopp a2e2c3
--- 678,681 ----
Karsten Hopp a2e2c3
  {   /* Add new patch number below this line */
Karsten Hopp a2e2c3
+ /**/
Karsten Hopp a2e2c3
+     54,
Karsten Hopp a2e2c3
  /**/
Karsten Hopp a2e2c3
Karsten Hopp a2e2c3
-- 
Karsten Hopp a2e2c3
Not too long ago, compress was something you did to garbage...
Karsten Hopp a2e2c3
Karsten Hopp a2e2c3
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp a2e2c3
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp a2e2c3
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp a2e2c3
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///