]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - vim/patches/vim-7.3.464.patch0
vim: Import latest patches from upstream.
[people/ms/ipfire-3.x.git] / vim / patches / vim-7.3.464.patch0
CommitLineData
c6060300
MT
1To: vim_dev@googlegroups.com
2Subject: Patch 7.3.464
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.3.464
11Problem: Compiler warning for sprintf.
12Solution: Put the length in a variable. (Dominique Pelle)
13Files: src/version.c
14
15
16*** ../vim-7.3.463/src/version.c 2012-03-07 14:57:50.000000000 +0100
17--- src/version.c 2012-03-07 17:58:41.000000000 +0100
18***************
19*** 2187,2198 ****
20 /* Check for 9.9x or 9.9xx, alpha/beta version */
21 if (isalpha((int)vers[3]))
22 {
23! if (isalpha((int)vers[4]))
24! sprintf((char *)vers + 5, ".%d%s", highest_patch(),
25! mediumVersion + 5);
26! else
27! sprintf((char *)vers + 4, ".%d%s", highest_patch(),
28! mediumVersion + 4);
29 }
30 else
31 sprintf((char *)vers + 3, ".%d", highest_patch());
32--- 2189,2197 ----
33 /* Check for 9.9x or 9.9xx, alpha/beta version */
34 if (isalpha((int)vers[3]))
35 {
36! int len = (isalpha((int)vers[4])) ? 5 : 4;
37! sprintf((char *)vers + len, ".%d%s", highest_patch(),
38! mediumVersion + len);
39 }
40 else
41 sprintf((char *)vers + 3, ".%d", highest_patch());
42*** ../vim-7.3.463/src/version.c 2012-03-07 14:57:50.000000000 +0100
43--- src/version.c 2012-03-07 17:58:41.000000000 +0100
44***************
45*** 716,717 ****
46--- 716,719 ----
47 { /* Add new patch number below this line */
48+ /**/
49+ 464,
50 /**/
51
52--
53hundred-and-one symptoms of being an internet addict:
54152. You find yourself falling for someone you've never seen or hardly
55 know, but, boy can he/she TYPE!!!!!!
56
57 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
58/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
59\\\ an exciting new programming language -- http://www.Zimbu.org ///
60 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///