xserver: Branch 'master'
Dave Airlie
airlied at kemper.freedesktop.org
Wed Aug 22 23:25:38 PDT 2007
hw/xfree86/modes/xf86Crtc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
diff-tree 76bf3cd7b8c6189b6b08518cde00c8bd991bdfb7 (from 81f8b652d99ee0f7116c1e34aed0e585d23a91fb)
Author: Dave Airlie <airlied at redhat.com>
Date: Thu Aug 23 16:22:03 2007 +1000
randr: fixup crtc and output destroy
if you are moving pointers, you want to move the pointers not just a byte
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index 95b3035..d375da8 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -128,7 +128,7 @@ xf86CrtcDestroy (xf86CrtcPtr crtc)
{
memmove (&xf86_config->crtc[c],
&xf86_config->crtc[c+1],
- xf86_config->num_crtc - (c + 1));
+ ((xf86_config->num_crtc - (c + 1)) * sizeof(void*)));
xf86_config->num_crtc--;
break;
}
@@ -596,7 +596,7 @@ xf86OutputDestroy (xf86OutputPtr output)
{
memmove (&xf86_config->output[o],
&xf86_config->output[o+1],
- xf86_config->num_output - (o + 1));
+ ((xf86_config->num_output - (o + 1)) * sizeof(void*)));
xf86_config->num_output--;
break;
}
More information about the xorg-commit
mailing list