home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.1.099 < prev    next >
Encoding:
Internet Message Format  |  2002-06-17  |  1.8 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.099
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.099
  11. Problem:    Memory corrupted when closing a fold with more than 99999 lines.
  12. Solution:   Allocate more space for the fold text. (Walter Briscoe)
  13. Files:        src/eval.c
  14.  
  15.  
  16. *** ../vim61.098/src/eval.c    Sun May  5 19:05:22 2002
  17. --- src/eval.c    Tue Jun 18 19:32:53 2002
  18. ***************
  19. *** 3682,3689 ****
  20.       if (s[0] == '/' && (s[1] == '*' || s[1] == '/'))
  21.           s = skipwhite(s + 2);
  22.       txt = _("+-%s%3ld lines: ");
  23. !     r = alloc((unsigned)(STRLEN(s)
  24. !              + STRLEN(vimvars[VV_FOLDDASHES].val) + STRLEN(txt)));
  25.       if (r != NULL)
  26.       {
  27.           sprintf((char *)r, txt, vimvars[VV_FOLDDASHES].val,
  28. --- 3682,3691 ----
  29.       if (s[0] == '/' && (s[1] == '*' || s[1] == '/'))
  30.           s = skipwhite(s + 2);
  31.       txt = _("+-%s%3ld lines: ");
  32. !     r = alloc((unsigned)(STRLEN(txt)
  33. !             + STRLEN(vimvars[VV_FOLDDASHES].val)    /* for %s */
  34. !             + 20                    /* for %3ld */
  35. !             + STRLEN(s)));                /* concatenated */
  36.       if (r != NULL)
  37.       {
  38.           sprintf((char *)r, txt, vimvars[VV_FOLDDASHES].val,
  39. *** ../vim61.098/src/version.c    Tue Jun 18 21:26:55 2002
  40. --- src/version.c    Tue Jun 18 21:28:40 2002
  41. ***************
  42. *** 608,609 ****
  43. --- 608,611 ----
  44.   {   /* Add new patch number below this line */
  45. + /**/
  46. +     99,
  47.   /**/
  48.  
  49. -- 
  50. hundred-and-one symptoms of being an internet addict:
  51. 258. When you want to see your girlfriend, you surf to her homepage.
  52.  
  53.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  54. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  55. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  56.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  57.