]> git.tdb.fi Git - geometrycompositor.git/commitdiff
Correctly check the length of the correction value property
authorMikko Rasa <tdb@tdb.fi>
Mon, 14 Dec 2015 20:51:10 +0000 (22:51 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 14 Dec 2015 20:57:16 +0000 (22:57 +0200)
source/main.c

index cde4df3ba14659790a729137b6d3fc1ab17f5125..1a4d5960b257059dccf6d288a0d024be9ed30b36 100644 (file)
@@ -821,7 +821,7 @@ void update_geometry_correction(Compositor *compositor, CompositedScreen *screen
        use_gl(compositor, screen);
 
        name_ptr = names;
        use_gl(compositor, screen);
 
        name_ptr = names;
-       for(i=0; i*4<values_length; ++i)
+       for(i=0; i*4+3<values_length; ++i)
        {
                CompositedMonitor *monitor;
 
        {
                CompositedMonitor *monitor;