X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=72e57c8f73a868fc7871429b3ed22ddd17b21bcb;hb=907cb8bfa69926616639f9a19127117b37326029;hp=89fbee91960f028b1c08be431f99dc2872da1947;hpb=4bd087766f16bd541a1aebd0b0348ecc5fe9b94c;p=st.git diff --git a/st.c b/st.c index 89fbee9..72e57c8 100644 --- a/st.c +++ b/st.c @@ -34,7 +34,7 @@ #endif #define USAGE \ - "st-" VERSION ", (c) 2010-2011 st engineers\n" \ + "st " VERSION " (c) 2010-2011 st engineers\n" \ "usage: st [-t title] [-c class] [-w windowid] [-v] [-e command...]\n" /* XEMBED messages */ @@ -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]);