summaryrefslogtreecommitdiff
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:17:14 -0700
commit945aa0aa556429b50dea8e8ebc0008304b093eb7 (patch)
treeef224d81a20f3c9f6e2e2861a42a21109a67d6ba
parent8eb288fbd69e2ffd02521d2c6a964c8180d08ec8 (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.
-rw-r--r--randr/rrproperty.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/randr/rrproperty.c b/randr/rrproperty.c
index a57bd74bd..afac351e3 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;