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.
  • Loading branch information
Keith Packard committed Mar 23, 2007
1 parent 8eb288f commit 945aa0a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions randr/rrproperty.c
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 945aa0a

Please sign in to comment.