diff options
-rw-r--r-- | src/loader/loader.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/loader/loader.c b/src/loader/loader.c index 3c67f9dc244..913b3dcac03 100644 --- a/src/loader/loader.c +++ b/src/loader/loader.c @@ -110,8 +110,7 @@ static char *loader_get_dri_config_device_id(void) static char *drm_construct_id_path_tag(drmDevicePtr device) { -/* Length of "pci-xxxx_xx_xx_x\0" */ -#define PCI_ID_PATH_TAG_LENGTH 17 +#define PCI_ID_PATH_TAG_LENGTH sizeof("pci-xxxx_xx_xx_x") char *tag = NULL; if (device->bustype == DRM_BUS_PCI) { |