summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <k0ga@shike2.com>2015-04-22 09:16:35 +0200
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2015-04-23 17:59:10 +0200
commitb17aa18f7c15be8db2afd62ac696b63c75755f1c (patch)
tree3ac1be57db45ee29eebfb996344053e314e81c36
parent736685d641c23e8b08f3349d64bf30c1c86cd95d (diff)
Uses a &[] pointer loop instead of + pointer loop
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
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);
}