1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Compiler warning for sprintf.
12 Solution: Put the length in a variable. (Dominique Pelle)
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
20 /* Check for 9.9x or 9.9xx, alpha/beta version */
21 if (isalpha((int)vers[3]))
23 ! if (isalpha((int)vers[4]))
24 ! sprintf((char *)vers + 5, ".%d%s", highest_patch(),
27 ! sprintf((char *)vers + 4, ".%d%s", highest_patch(),
31 sprintf((char *)vers + 3, ".%d", highest_patch());
33 /* Check for 9.9x or 9.9xx, alpha/beta version */
34 if (isalpha((int)vers[3]))
36 ! int len = (isalpha((int)vers[4])) ? 5 : 4;
37 ! sprintf((char *)vers + len, ".%d%s", highest_patch(),
38 ! mediumVersion + len);
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
47 { /* Add new patch number below this line */
53 hundred-and-one symptoms of being an internet addict:
54 152. You find yourself falling for someone you've never seen or hardly
55 know, but, boy can he/she TYPE!!!!!!
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 ///