pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
736685d
)
Uses a &[] pointer loop instead of + pointer loop
author
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Wed, 22 Apr 2015 07:16:35 +0000
(09:16 +0200)
committer
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Thu, 23 Apr 2015 15:59:10 +0000
(17:59 +0200)
st.c
patch
|
blob
|
history
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);
}