summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorKeith Packard <keithp@guitar.keithp.com>2007-03-23 01:17:14 -0700
committerKeith Packard <keithp@guitar.keithp.com>2007-03-23 01:32:45 -0700
commit476f2b5aefa518262b69e487555e6094818d857a (patch)
tree372f96296d353f044247a04bd8712837f7fa2e26 /randr
parent7093367c3976bef5b9d219d9f2a7dc7dd3eeb091 (diff)
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)
Diffstat (limited to 'randr')
-rw-r--r--randr/rrproperty.c2
1 files changed, 0 insertions, 2 deletions
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;