]>
Commit | Line | Data |
---|---|---|
c84df032 ER |
1 | To: vim-dev@vim.org |
2 | Subject: patch 7.0.175 | |
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 7.0.175 | |
11 | Problem: The result of tr() is missing the terminating NUL. (Ingo Karkat) | |
12 | Solution: Add the NUL. | |
13 | Files: src/eval.c | |
14 | ||
15 | ||
16 | *** ../vim-7.0.174/src/eval.c Tue Nov 28 20:54:32 2006 | |
17 | --- src/eval.c Tue Dec 5 10:30:00 2006 | |
18 | *************** | |
19 | *** 16072,16077 **** | |
20 | --- 16072,16081 ---- | |
21 | ++instr; | |
22 | } | |
23 | } | |
24 | + | |
25 | + /* add a terminating NUL */ | |
26 | + ga_grow(&ga, 1); | |
27 | + ga_append(&ga, NUL); | |
28 | ||
29 | rettv->vval.v_string = ga.ga_data; | |
30 | } | |
31 | *** ../vim-7.0.174/src/version.c Tue Nov 28 21:41:19 2006 | |
32 | --- src/version.c Tue Dec 5 10:32:58 2006 | |
33 | *************** | |
34 | *** 668,669 **** | |
35 | --- 668,671 ---- | |
36 | { /* Add new patch number below this line */ | |
37 | + /**/ | |
38 | + 175, | |
39 | /**/ | |
40 | ||
41 | -- | |
42 | BLACK KNIGHT: I move for no man. | |
43 | ARTHUR: So be it! | |
44 | [hah] [parry thrust] | |
45 | [ARTHUR chops the BLACK KNIGHT's left arm off] | |
46 | ARTHUR: Now stand aside, worthy adversary. | |
47 | BLACK KNIGHT: 'Tis but a scratch. | |
48 | The Quest for the Holy Grail (Monty Python) | |
49 | ||
50 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
51 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
52 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
53 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |