X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/2fdcc5e5f633083eb5e52b201862106a2c547df9..b17aa18f7c15be8db2afd62ac696b63c75755f1c:/st.c diff --git a/st.c b/st.c index c805117..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); } @@ -4090,7 +4090,7 @@ run: if(argc > 0) { /* eat all remaining arguments */ opt_cmd = argv; - if(!opt_title) + if(!opt_title && !opt_line) opt_title = basename(xstrdup(argv[0])); } setlocale(LC_CTYPE, "");