]> git.pld-linux.org Git - packages/XFree86.git/blob - XFree86-alpha-pci-resource.patch
- merg from rawhide.
[packages/XFree86.git] / XFree86-alpha-pci-resource.patch
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
3 @@ -13,7 +13,7 @@ Bool
4  xf86GetPciSizeFromOS(PCITAG tag, int index, int* bits)
5  {
6      FILE *file;
7 -    char c[0x100];
8 +    char c[0x200];
9      char *res;
10      int bus, devfn, dev, fn;
11      unsigned int size[7];
12 @@ -26,7 +26,7 @@ xf86GetPciSizeFromOS(PCITAG tag, int ind
13      if (!(file = fopen("/proc/bus/pci/devices","r")))
14         return FALSE;
15      do {
16 -       res = fgets(c,0xff,file);
17 +       res = fgets(c,0x1ff,file);
18         if (res) {
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"
This page took 0.065241 seconds and 3 git commands to generate.