aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-18 20:16:07 +0100
committerMattias Andrée <maandree@kth.se>2016-12-18 20:16:07 +0100
commit4a1612e66104ddab25f8be8a167980ea4f94687a (patch)
tree1bef1c8661ce46a1fbc5c94b916119e6b66d44eb
parentstruct filter_update: add crtc (diff)
downloadcg-tools-4a1612e66104ddab25f8be8a167980ea4f94687a.tar.gz
cg-tools-4a1612e66104ddab25f8be8a167980ea4f94687a.tar.bz2
cg-tools-4a1612e66104ddab25f8be8a167980ea4f94687a.tar.xz
Fix segfault in cg-limits
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/cg-limits.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cg-limits.c b/src/cg-limits.c
index 5d9b05a..f3f0277 100644
--- a/src/cg-limits.c
+++ b/src/cg-limits.c
@@ -679,7 +679,7 @@ int start(void)
if (!strcasecmp(crtc_updates[i].filter.crtc, bnames[j]))
break;
for (k = 0; cnames[k] != NULL; k++)
- if (!strcasecmp(crtc_updates[k].filter.crtc, cnames[k]))
+ if (!strcasecmp(crtc_updates[i].filter.crtc, cnames[k]))
break;
if ((bnames[j] != NULL) || (cnames[k] != NULL))
{