while downward overlapped memcpys are safe, shut up valgrind

This commit is contained in:
Bill Currie 2003-08-13 17:07:42 +00:00
parent 6f519c7e0f
commit 28e2679f0b

View file

@ -153,8 +153,8 @@ view_remove (view_t *par, view_t *view)
for (i = 0; i < par->num_children; i++) { for (i = 0; i < par->num_children; i++) {
if (par->children[i] == view) { if (par->children[i] == view) {
memcpy (par->children + i, par->children + i + 1, memmove (par->children + i, par->children + i + 1,
(par->num_children - i - 1) * sizeof (view_t *)); (par->num_children - i - 1) * sizeof (view_t *));
par->children [--par->num_children] = 0; par->children [--par->num_children] = 0;
break; break;
} }