diff options
Diffstat (limited to 'src/intel_device.c')
-rw-r--r-- | src/intel_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel_device.c b/src/intel_device.c index f28d3be1..2ce2e9ad 100644 --- a/src/intel_device.c +++ b/src/intel_device.c @@ -335,9 +335,9 @@ static int __intel_open_device__major_minor(int _major, int _minor) static int __intel_open_device__pci(const struct pci_device *pci) { struct stat st; - char path[256]; - DIR *dir; struct dirent *de; + char path[64+sizeof(de->d_name)]; + DIR *dir; int base; int fd; |