aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_linux_drm_site_initialise.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libgamma_linux_drm_site_initialise.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libgamma_linux_drm_site_initialise.c b/libgamma_linux_drm_site_initialise.c
index 9c57bd1..f6e4734 100644
--- a/libgamma_linux_drm_site_initialise.c
+++ b/libgamma_linux_drm_site_initialise.c
@@ -30,8 +30,7 @@ libgamma_linux_drm_site_initialise(struct libgamma_site_state *restrict this, ch
this->partitions_available = 0;
for (;;) {
/* Construct pathname of graphics card device */
- snprintf(pathname, sizeof(pathname) / sizeof(char),
- DRM_DEV_NAME, DRM_DIR_NAME, (int)(this->partitions_available));
+ snprintf(pathname, sizeof(pathname), DRM_DEV_NAME, DRM_DIR_NAME, (int)this->partitions_available);
/* `stat` the graphics card's existence */
if (stat(pathname, &_attr))
break;