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)
This commit is contained in:
parent
7093367c39
commit
476f2b5aef
|
@ -177,8 +177,6 @@ RRChangeOutputProperty (RROutputPtr output, Atom property, Atom type,
|
||||||
RRDestroyOutputProperty (prop);
|
RRDestroyOutputProperty (prop);
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
}
|
}
|
||||||
if (len)
|
|
||||||
memmove((char *)new_value.data, (char *)value, total_size);
|
|
||||||
new_value.size = len;
|
new_value.size = len;
|
||||||
new_value.type = type;
|
new_value.type = type;
|
||||||
new_value.format = format;
|
new_value.format = format;
|
||||||
|
|
Loading…
Reference in New Issue