1 --- XFree86-4.0.2/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_pci.c.orig Tue Oct 17 20:53:20 2000
2 +++ XFree86-4.0.2/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_pci.c Fri Mar 2 13:23:04 2001
4 xf86GetPciSizeFromOS(PCITAG tag, int index, int* bits)
10 int bus, devfn, dev, fn;
12 @@ -26,7 +26,7 @@ xf86GetPciSizeFromOS(PCITAG tag, int ind
13 if (!(file = fopen("/proc/bus/pci/devices","r")))
16 - res = fgets(c,0xff,file);
17 + res = fgets(c,0x1ff,file);
19 num = sscanf(res,"%02x%02x\t%*04x%*04x\t%*x"
20 "\t%*x\t%*x\t%*x\t%*x\t%*x\t%*x\t%*x"