Skip to content

Commit

Permalink
Incorrect extra memory copy in RRChangeOutputProperty.
Browse files Browse the repository at this point in the history
Left over from previous version of the code, this memmove will break when
the mode is not Replace.
(cherry picked from commit 945aa0a)
  • Loading branch information
Keith Packard committed Mar 23, 2007
1 parent 7093367 commit 476f2b5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions randr/rrproperty.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ RRChangeOutputProperty (RROutputPtr output, Atom property, Atom type,
RRDestroyOutputProperty (prop);
return BadAlloc;
}
if (len)
memmove((char *)new_value.data, (char *)value, total_size);
new_value.size = len;
new_value.type = type;
new_value.format = format;
Expand Down

0 comments on commit 476f2b5

Please sign in to comment.