summaryrefslogtreecommitdiff
path: root/source/ap/vim/patches/7.2.213
blob: 74a0e1650933add709d62fb5783740d63360aee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
To: vim-dev@vim.org
Subject: Patch 7.2.213
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.2.213
Problem:    Warning for using vsprintf().
Solution:   Use vim_vsnprintf().
Files:	    src/netbeans.c


*** ../vim-7.2.212/src/netbeans.c	2009-06-16 16:57:53.000000000 +0200
--- src/netbeans.c	2009-06-24 11:26:43.000000000 +0200
***************
*** 2586,2592 ****
      va_list ap;
  
      va_start(ap, cmd);
!     vsprintf(buf, cmd, ap);
      va_end(ap);
  
      nbdebug(("    COLONCMD %s\n", buf));
--- 2586,2592 ----
      va_list ap;
  
      va_start(ap, cmd);
!     vim_vsnprintf(buf, sizeof(buf), cmd, ap, NULL);
      va_end(ap);
  
      nbdebug(("    COLONCMD %s\n", buf));
*** ../vim-7.2.212/src/version.c	2009-06-24 16:41:01.000000000 +0200
--- src/version.c	2009-06-24 16:49:06.000000000 +0200
***************
*** 678,679 ****
--- 678,681 ----
  {   /* Add new patch number below this line */
+ /**/
+     213,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
38. You wake up at 3 a.m. to go to the bathroom and stop and check your e-mail
    on the way back to bed.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///