mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
while downward overlapped memcpys are safe, shut up valgrind
This commit is contained in:
parent
6f519c7e0f
commit
28e2679f0b
1 changed files with 2 additions and 2 deletions
|
@ -153,8 +153,8 @@ view_remove (view_t *par, view_t *view)
|
|||
|
||||
for (i = 0; i < par->num_children; i++) {
|
||||
if (par->children[i] == view) {
|
||||
memcpy (par->children + i, par->children + i + 1,
|
||||
(par->num_children - i - 1) * sizeof (view_t *));
|
||||
memmove (par->children + i, par->children + i + 1,
|
||||
(par->num_children - i - 1) * sizeof (view_t *));
|
||||
par->children [--par->num_children] = 0;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue