]>
Commit | Line | Data |
---|---|---|
65bfde4c AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.2.053 | |
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.2.053 | |
11 | Problem: Crash when using WorkShop command ":ws foo". (Dominique Pelle) | |
12 | Solution: Avoid using a NULL pointer. | |
13 | Files: src/workshop.c | |
14 | ||
15 | ||
16 | *** ../vim-7.2.052/src/workshop.c Tue Jun 24 23:34:50 2008 | |
17 | --- src/workshop.c Thu Nov 27 22:31:27 2008 | |
18 | *************** | |
19 | *** 1121,1128 **** | |
20 | ? (char *)curbuf->b_sfname : "<None>"); | |
21 | #endif | |
22 | ||
23 | ! strcpy(ffname, (char *) curbuf->b_ffname); | |
24 | ! *filename = ffname; /* copy so nobody can change b_ffname */ | |
25 | *curLine = curwin->w_cursor.lnum; | |
26 | *curCol = curwin->w_cursor.col; | |
27 | ||
28 | --- 1121,1132 ---- | |
29 | ? (char *)curbuf->b_sfname : "<None>"); | |
30 | #endif | |
31 | ||
32 | ! if (curbuf->b_ffname == NULL) | |
33 | ! ffname[0] = NUL; | |
34 | ! else | |
35 | ! /* copy so nobody can change b_ffname */ | |
36 | ! strcpy(ffname, (char *) curbuf->b_ffname); | |
37 | ! *filename = ffname; | |
38 | *curLine = curwin->w_cursor.lnum; | |
39 | *curCol = curwin->w_cursor.col; | |
40 | ||
41 | *** ../vim-7.2.052/src/version.c Fri Nov 28 11:15:10 2008 | |
42 | --- src/version.c Fri Nov 28 11:44:23 2008 | |
43 | *************** | |
44 | *** 678,679 **** | |
45 | --- 678,681 ---- | |
46 | { /* Add new patch number below this line */ | |
47 | + /**/ | |
48 | + 53, | |
49 | /**/ | |
50 | ||
51 | -- | |
52 | What the word 'politics' means: 'Poli' in Latin meaning 'many' and 'tics' | |
53 | meaning 'bloodsucking creatures'. | |
54 | ||
55 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
56 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
57 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
58 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |