summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgbert Eich <eich@freedesktop.org>2007-09-04 16:42:57 +0200
committerEgbert Eich <eich@wlan-hermes.suse.de>2007-09-04 16:42:57 +0200
commit735da3dcd09f59c40f68eca8c9a91c2e826cd1b9 (patch)
tree3292cb9ba37f4b35c4e909f31d3d4ad629de8ddb
parent7c5de093d499de63d39fe038d86da0a085262017 (diff)
Fixing xf86I2CGetScreenBuses(), now dereferencing the correct pointer.
-rw-r--r--hw/xfree86/i2c/xf86i2c.c2
1 files changed, 1 insertions, 1 deletions
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;