home *** CD-ROM | disk | FTP | other *** search
- To: vim-dev@vim.org
- Subject: Patch 6.1.099
- Fcc: outbox
- From: Bram Moolenaar <Bram@moolenaar.net>
- MIME-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- ------------
-
- Patch 6.1.099
- Problem: Memory corrupted when closing a fold with more than 99999 lines.
- Solution: Allocate more space for the fold text. (Walter Briscoe)
- Files: src/eval.c
-
-
- *** ../vim61.098/src/eval.c Sun May 5 19:05:22 2002
- --- src/eval.c Tue Jun 18 19:32:53 2002
- ***************
- *** 3682,3689 ****
- if (s[0] == '/' && (s[1] == '*' || s[1] == '/'))
- s = skipwhite(s + 2);
- txt = _("+-%s%3ld lines: ");
- ! r = alloc((unsigned)(STRLEN(s)
- ! + STRLEN(vimvars[VV_FOLDDASHES].val) + STRLEN(txt)));
- if (r != NULL)
- {
- sprintf((char *)r, txt, vimvars[VV_FOLDDASHES].val,
- --- 3682,3691 ----
- if (s[0] == '/' && (s[1] == '*' || s[1] == '/'))
- s = skipwhite(s + 2);
- txt = _("+-%s%3ld lines: ");
- ! r = alloc((unsigned)(STRLEN(txt)
- ! + STRLEN(vimvars[VV_FOLDDASHES].val) /* for %s */
- ! + 20 /* for %3ld */
- ! + STRLEN(s))); /* concatenated */
- if (r != NULL)
- {
- sprintf((char *)r, txt, vimvars[VV_FOLDDASHES].val,
- *** ../vim61.098/src/version.c Tue Jun 18 21:26:55 2002
- --- src/version.c Tue Jun 18 21:28:40 2002
- ***************
- *** 608,609 ****
- --- 608,611 ----
- { /* Add new patch number below this line */
- + /**/
- + 99,
- /**/
-
- --
- hundred-and-one symptoms of being an internet addict:
- 258. When you want to see your girlfriend, you surf to her homepage.
-
- /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\
- /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\
- \\\ Project leader for A-A-P -- http://www.a-a-p.org ///
- \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
-