Karsten Hopp 8ae684
To: vim-dev@vim.org
Karsten Hopp 8ae684
Subject: patch 7.0.175
Karsten Hopp 8ae684
Fcc: outbox
Karsten Hopp 8ae684
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8ae684
Mime-Version: 1.0
Karsten Hopp 8ae684
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 8ae684
Content-Transfer-Encoding: 8bit
Karsten Hopp 8ae684
------------
Karsten Hopp 8ae684
Karsten Hopp 8ae684
Patch 7.0.175
Karsten Hopp 8ae684
Problem:    The result of tr() is missing the terminating NUL. (Ingo Karkat)
Karsten Hopp 8ae684
Solution:   Add the NUL.
Karsten Hopp 8ae684
Files:	    src/eval.c
Karsten Hopp 8ae684
Karsten Hopp 8ae684
Karsten Hopp 8ae684
*** ../vim-7.0.174/src/eval.c	Tue Nov 28 20:54:32 2006
Karsten Hopp 8ae684
--- src/eval.c	Tue Dec  5 10:30:00 2006
Karsten Hopp 8ae684
***************
Karsten Hopp 8ae684
*** 16072,16077 ****
Karsten Hopp 8ae684
--- 16072,16081 ----
Karsten Hopp 8ae684
  	    ++instr;
Karsten Hopp 8ae684
  	}
Karsten Hopp 8ae684
      }
Karsten Hopp 8ae684
+ 
Karsten Hopp 8ae684
+     /* add a terminating NUL */
Karsten Hopp 8ae684
+     ga_grow(&ga, 1);
Karsten Hopp 8ae684
+     ga_append(&ga, NUL);
Karsten Hopp 8ae684
  
Karsten Hopp 8ae684
      rettv->vval.v_string = ga.ga_data;
Karsten Hopp 8ae684
  }
Karsten Hopp 8ae684
*** ../vim-7.0.174/src/version.c	Tue Nov 28 21:41:19 2006
Karsten Hopp 8ae684
--- src/version.c	Tue Dec  5 10:32:58 2006
Karsten Hopp 8ae684
***************
Karsten Hopp 8ae684
*** 668,669 ****
Karsten Hopp 8ae684
--- 668,671 ----
Karsten Hopp 8ae684
  {   /* Add new patch number below this line */
Karsten Hopp 8ae684
+ /**/
Karsten Hopp 8ae684
+     175,
Karsten Hopp 8ae684
  /**/
Karsten Hopp 8ae684
Karsten Hopp 8ae684
-- 
Karsten Hopp 8ae684
BLACK KNIGHT:  I move for no man.
Karsten Hopp 8ae684
ARTHUR:        So be it!
Karsten Hopp 8ae684
    [hah] [parry thrust]
Karsten Hopp 8ae684
    [ARTHUR chops the BLACK KNIGHT's left arm off]
Karsten Hopp 8ae684
ARTHUR:        Now stand aside, worthy adversary.
Karsten Hopp 8ae684
BLACK KNIGHT:  'Tis but a scratch.
Karsten Hopp 8ae684
                                  The Quest for the Holy Grail (Monty Python)
Karsten Hopp 8ae684
Karsten Hopp 8ae684
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8ae684
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8ae684
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 8ae684
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///