From 648f006f08dd4bea9e259e0e59e1cc47ec671b96 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 21 Mar 2025 18:17:50 +0100 Subject: Remove dependency on libsimple since it's not portable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/gamma-drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gamma-drm.c') 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; -- cgit v1.2.3-70-g09d2