Karsten Hopp 81c285
To: vim-dev@vim.org
Karsten Hopp 81c285
Subject: Patch 7.2.213
Karsten Hopp 81c285
Fcc: outbox
Karsten Hopp 81c285
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 81c285
Mime-Version: 1.0
Karsten Hopp 81c285
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 81c285
Content-Transfer-Encoding: 8bit
Karsten Hopp 81c285
------------
Karsten Hopp 81c285
Karsten Hopp 81c285
Patch 7.2.213
Karsten Hopp 81c285
Problem:    Warning for using vsprintf().
Karsten Hopp 81c285
Solution:   Use vim_vsnprintf().
Karsten Hopp 81c285
Files:	    src/netbeans.c
Karsten Hopp 81c285
Karsten Hopp 81c285
Karsten Hopp 81c285
*** ../vim-7.2.212/src/netbeans.c	2009-06-16 16:57:53.000000000 +0200
Karsten Hopp 81c285
--- src/netbeans.c	2009-06-24 11:26:43.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 2586,2592 ****
Karsten Hopp 81c285
      va_list ap;
Karsten Hopp 81c285
  
Karsten Hopp 81c285
      va_start(ap, cmd);
Karsten Hopp 81c285
!     vsprintf(buf, cmd, ap);
Karsten Hopp 81c285
      va_end(ap);
Karsten Hopp 81c285
  
Karsten Hopp 81c285
      nbdebug(("    COLONCMD %s\n", buf));
Karsten Hopp 81c285
--- 2586,2592 ----
Karsten Hopp 81c285
      va_list ap;
Karsten Hopp 81c285
  
Karsten Hopp 81c285
      va_start(ap, cmd);
Karsten Hopp 81c285
!     vim_vsnprintf(buf, sizeof(buf), cmd, ap, NULL);
Karsten Hopp 81c285
      va_end(ap);
Karsten Hopp 81c285
  
Karsten Hopp 81c285
      nbdebug(("    COLONCMD %s\n", buf));
Karsten Hopp 81c285
*** ../vim-7.2.212/src/version.c	2009-06-24 16:41:01.000000000 +0200
Karsten Hopp 81c285
--- src/version.c	2009-06-24 16:49:06.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 678,679 ****
Karsten Hopp 81c285
--- 678,681 ----
Karsten Hopp 81c285
  {   /* Add new patch number below this line */
Karsten Hopp 81c285
+ /**/
Karsten Hopp 81c285
+     213,
Karsten Hopp 81c285
  /**/
Karsten Hopp 81c285
Karsten Hopp 81c285
-- 
Karsten Hopp 81c285
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 81c285
38. You wake up at 3 a.m. to go to the bathroom and stop and check your e-mail
Karsten Hopp 81c285
    on the way back to bed.
Karsten Hopp 81c285
Karsten Hopp 81c285
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 81c285
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 81c285
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 81c285
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///