summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2018-01-31 17:33:48 +0100
committerAdam Jackson <ajax@redhat.com>2018-01-31 14:43:56 -0500
commit94e7ca6a5667eeb13c078496a07d3e6cf1ec95cc (patch)
tree6e3ec487cf20f7060e661eebc70e133d25d81d1b /randr
parentff410c56bfd6dcdf5d252ef0ba3f4c6fde91774b (diff)
rrmonitor: allocate using the correct type
Monitor outputs are of type RROutput, not RRCrtc. (Which are both XID, so this makes no difference in practice, other than being technically correct.) Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'randr')
-rw-r--r--randr/rrmonitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/randr/rrmonitor.c b/randr/rrmonitor.c
index 3f6e03e7d..1bb5018fe 100644
--- a/randr/rrmonitor.c
+++ b/randr/rrmonitor.c
@@ -92,7 +92,7 @@ RRMonitorSetFromServer(RRCrtcPtr crtc, RRMonitorPtr monitor)
monitor->name = RRMonitorCrtcName(crtc);
monitor->pScreen = crtc->pScreen;
monitor->numOutputs = crtc->numOutputs;
- monitor->outputs = calloc(crtc->numOutputs, sizeof(RRCrtc));
+ monitor->outputs = calloc(crtc->numOutputs, sizeof(RROutput));
if (!monitor->outputs)
return FALSE;
for (o = 0; o < crtc->numOutputs; o++)