summaryrefslogtreecommitdiff
path: root/src/intel_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel_device.c')
-rw-r--r--src/intel_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel_device.c b/src/intel_device.c
index 21955073..f28d3be1 100644
--- a/src/intel_device.c
+++ b/src/intel_device.c
@@ -301,9 +301,9 @@ static int open_cloexec(const char *path)
#ifdef __linux__
static int __intel_open_device__major_minor(int _major, int _minor)
{
- char path[256];
DIR *dir;
struct dirent *de;
+ char path[9+sizeof(de->d_name)];
int base, fd = -1;
base = sprintf(path, "/dev/dri/");