From 476f2b5aefa518262b69e487555e6094818d857a Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 23 Mar 2007 01:17:14 -0700 Subject: Incorrect extra memory copy in RRChangeOutputProperty. Left over from previous version of the code, this memmove will break when the mode is not Replace. (cherry picked from commit 945aa0aa556429b50dea8e8ebc0008304b093eb7) --- randr/rrproperty.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'randr') diff --git a/randr/rrproperty.c b/randr/rrproperty.c index b0182daa7..148e4a27d 100644 --- a/randr/rrproperty.c +++ b/randr/rrproperty.c @@ -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; -- cgit v1.2.3