From 735da3dcd09f59c40f68eca8c9a91c2e826cd1b9 Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Tue, 4 Sep 2007 16:42:57 +0200 Subject: [PATCH] Fixing xf86I2CGetScreenBuses(), now dereferencing the correct pointer. --- hw/xfree86/i2c/xf86i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/i2c/xf86i2c.c b/hw/xfree86/i2c/xf86i2c.c index 0139612f5..5cc83faa3 100644 --- a/hw/xfree86/i2c/xf86i2c.c +++ b/hw/xfree86/i2c/xf86i2c.c @@ -883,7 +883,7 @@ xf86I2CGetScreenBuses(int scrnIndex, I2CBusPtr **pppI2CBus) continue; *pppI2CBus = xnfrealloc(*pppI2CBus, n * sizeof(I2CBusPtr)); - pppI2CBus[n - 1] = pI2CBus; + (*pppI2CBus)[n - 1] = pI2CBus; } return n;