]> mj.ucw.cz Git - pciutils.git/commitdiff
extend buffer size for proc reads, too small on sparc64
authorEddie C. Dost <edc@skynet.be>
Tue, 31 Aug 1999 05:58:07 +0000 (05:58 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 5 May 2006 12:10:13 +0000 (14:10 +0200)
lib/proc.c

index 9f617c38165930a925d839f8a1de6d8d22fcaad7..5b67d65311d85f033144b8019ea673d0c30412a3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     $Id: proc.c,v 1.5 1999/07/20 12:13:42 mj Exp $
+ *     $Id: proc.c,v 1.6 1999/08/31 05:58:07 ecd Exp $
  *
  *     The PCI Library -- Configuration Access via /proc/bus/pci
  *
@@ -115,7 +115,7 @@ static void
 proc_scan(struct pci_access *a)
 {
   FILE *f;
-  char buf[256];
+  char buf[512];
 
   if (snprintf(buf, sizeof(buf), "%s/devices", a->method_params[PCI_ACCESS_PROC_BUS_PCI]) == sizeof(buf))
     a->error("File name too long");