X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=blobdiff_plain;f=st.c;h=72e57c8f73a868fc7871429b3ed22ddd17b21bcb;hp=6594aa3bd1cc5f7e10b5b37841fbf82b6bde0c8e;hb=907cb8bfa69926616639f9a19127117b37326029;hpb=9d613092d6698ef41cb7492cdb3214ee9a5ab4d7 diff --git a/st.c b/st.c index 6594aa3..72e57c8 100644 --- a/st.c +++ b/st.c @@ -1541,7 +1541,7 @@ xloadcols(void) { XColor color; unsigned long white = WhitePixel(xw.dpy, xw.scr); - for(i = 0; i < 16; i++) { + for(i = 0; i < LEN(colorname); i++) { if(!XAllocNamedColor(xw.dpy, xw.cmap, colorname[i], &color, &color)) { dc.col[i] = white; fprintf(stderr, "Could not allocate color '%s'\n", colorname[i]);