From: Roberto E. Vargas Caballero Date: Wed, 22 Apr 2015 07:16:35 +0000 (+0200) Subject: Uses a &[] pointer loop instead of + pointer loop X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=b17aa18f7c15be8db2afd62ac696b63c75755f1c;p=st.git Uses a &[] pointer loop instead of + pointer loop --- diff --git a/st.c b/st.c index ece1f64..5e92db2 100644 --- 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); }