aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-drm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamma-drm.c')
-rw-r--r--src/gamma-drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gamma-drm.c b/src/gamma-drm.c
index 2de0261..2098e0d 100644
--- a/src/gamma-drm.c
+++ b/src/gamma-drm.c
@@ -64,7 +64,7 @@ static int
drm_start(struct gamma_state *state)
{
/* Acquire access to a graphics card. */
- char pathname[STRLEN(DRM_DIR_NAME"") + STRLEN(DRM_DEV_NAME"") + 3U * sizeof(int) + 2U];
+ char pathname[sizeof(DRM_DIR_NAME"")-1U + sizeof(DRM_DEV_NAME"")-1U + 3U * sizeof(int) + 2U];
int crtc_count;
struct drm_crtc_state *crtcs;