From 7c92504fd5fcfce3d1079e1298e6f872aba932b4 Mon Sep 17 00:00:00 2001 From: Alexander Sedov Date: Wed, 20 Feb 2013 04:57:11 +0400 Subject: [PATCH] Fixed off-by-one error. It happens. To: dev@suckless.org --- st.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/st.c b/st.c index 42d1ac3..2d34ad9 100644 --- a/st.c +++ b/st.c @@ -1890,8 +1890,9 @@ strhandle(void) { /* * TODO: Handle special chars in string, like umlauts. */ - if(narg > 1) - XStoreName(xw.dpy, xw.win, strescseq.args[2]); + if(narg > 1) { + XStoreName(xw.dpy, xw.win, strescseq.args[1]); + } break; case 4: /* color set */ if(narg < 3) -- 1.7.10.4