Uses a &[] pointer loop instead of + pointer loop
authorRoberto E. Vargas Caballero <k0ga@shike2.com>
Wed, 22 Apr 2015 07:16:35 +0000 (09:16 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Thu, 23 Apr 2015 15:59:10 +0000 (17:59 +0200)
st.c

diff --git a/st.c b/st.c
index ece1f64..5e92db2 100644 (file)
--- a/st.c
+++ b/st.c
@@ -2906,7 +2906,7 @@ xloadcols(void) {
        Color *cp;
 
        if(loaded) {
-               for (cp = dc.col; cp < dc.col + LEN(dc.col); ++cp)
+               for (cp = dc.col; cp < &dc.col[LEN(dc.col)]; ++cp)
                        XftColorFree(xw.dpy, xw.vis, xw.cmap, cp);
        }