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: Buffer on the stack may be too big
12 Solution: Allocate the space.
16 *** ../vim-7.3.165/src/option.c 2011-04-28 12:56:57.000000000 +0200
17 --- src/option.c 2011-04-15 20:49:54.000000000 +0200
23 ! char_u buf[MAXPATHL];
25 if (fprintf(fd, "%s %s=", cmd, name) < 0)
33 if (fprintf(fd, "%s %s=", cmd, name) < 0)
41 + buf = alloc(MAXPATHL);
44 home_replace(NULL, *valuep, buf, MAXPATHL, FALSE);
45 if (put_escstr(fd, buf, 2) == FAIL)
52 else if (put_escstr(fd, *valuep, 2) == FAIL)
54 *** ../vim-7.3.165/src/version.c 2011-04-28 17:21:49.000000000 +0200
55 --- src/version.c 2011-04-28 17:23:24.000000000 +0200
59 { /* Add new patch number below this line */
65 He who laughs last, thinks slowest.
67 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
68 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
69 \\\ an exciting new programming language -- http://www.Zimbu.org ///
70 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///