--- st.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/st.c b/st.c index bb8c365..759a3b1 100644 --- a/st.c +++ b/st.c _AT_@ -2868,11 +2868,10 @@ xloadcols(void) { int i; XRenderColor color = { .alpha = 0xffff }; static bool loaded; - Color *cp; if(loaded) { - for (cp = dc.col; cp < dc.col + LEN(dc.col); ++cp) - XftColorFree(xw.dpy, xw.vis, xw.cmap, cp); + for (i = 0; i < LEN(dc.col); i++) + XftColorFree(xw.dpy, xw.vis, xw.cmap, &dc.col[i]); } /* load colors [0-15] and [256-LEN(colorname)] (config.h) */ -- 1.8.4Received on Sun Apr 19 2015 - 22:24:02 CEST
This archive was generated by hypermail 2.3.0 : Sun Apr 19 2015 - 22:36:12 CEST