diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-21 18:17:50 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-21 18:17:50 +0100 |
commit | 648f006f08dd4bea9e259e0e59e1cc47ec671b96 (patch) | |
tree | 5dc19d10a9e3c3eb4384816c1df0254990bfd68e /src/gamma-drm.c | |
parent | m (diff) | |
download | redshift-ng-648f006f08dd4bea9e259e0e59e1cc47ec671b96.tar.gz redshift-ng-648f006f08dd4bea9e259e0e59e1cc47ec671b96.tar.bz2 redshift-ng-648f006f08dd4bea9e259e0e59e1cc47ec671b96.tar.xz |
Remove dependency on libsimple since it's not portable
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/gamma-drm.c')
-rw-r--r-- | src/gamma-drm.c | 2 |
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; |