[hackers] [st] Uses a &[] pointer loop instead of + pointer loop || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 27 Apr 2015 08:47:24 +0200 (CEST)

commit b17aa18f7c15be8db2afd62ac696b63c75755f1c
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Wed Apr 22 09:16:35 2015 +0200

    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
_AT_@ -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);
         }
 
Received on Mon Apr 27 2015 - 08:47:24 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 27 2015 - 08:48:14 CEST