4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Overlapping arguments to memcpy().
12 Solution: Use mch_memmove(). (Dominique Pelle)
13 Files: src/if_xcmdsrv.c
16 *** ../vim-7.2.037/src/if_xcmdsrv.c Wed Aug 6 18:38:13 2008
17 --- src/if_xcmdsrv.c Wed Nov 12 12:09:01 2008
22 ga_init2(&e.strings, 1, 100);
23 ! memcpy(p, &e, sizeof(e));
30 ga_init2(&e.strings, 1, 100);
31 ! mch_memmove(p, &e, sizeof(e));
38 count = numItems - (p - regProp);
40 ! memcpy(entry, p, count);
41 XChangeProperty(dpy, RootWindow(dpy, 0), registryProperty, XA_STRING,
42 8, PropModeReplace, regProp,
43 (int)(numItems - (p - entry)));
46 count = numItems - (p - regProp);
48 ! mch_memmove(entry, p, count);
49 XChangeProperty(dpy, RootWindow(dpy, 0), registryProperty, XA_STRING,
50 8, PropModeReplace, regProp,
51 (int)(numItems - (p - entry)));
55 lastHalf = numItems - (p - regProp);
57 ! memcpy(entry, p, lastHalf);
58 numItems = (entry - regProp) + lastHalf;
63 lastHalf = numItems - (p - regProp);
65 ! mch_memmove(entry, p, lastHalf);
66 numItems = (entry - regProp) + lastHalf;
69 *** ../vim-7.2.037/src/version.c Wed Nov 12 14:09:38 2008
70 --- src/version.c Wed Nov 12 14:51:00 2008
74 { /* Add new patch number below this line */
80 hundred-and-one symptoms of being an internet addict:
81 241. You try to look for Net Search even when you're in File Manager.
83 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
84 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
85 \\\ download, build and distribute -- http://www.A-A-P.org ///
86 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///