Commit Diff


commit - ea4d933ed9d8ce16699c84892a29e070c70b2eb9
commit + 7ceb3d1f72eabfa678e5cfae176c57630ad98c43
blob - a8f8232e3539f31cc39e599ebabd2f144058e6c1
blob + 50226d1677b230d290d9e802742e85f27dc1d4b4
--- st.c
+++ st.c
@@ -2330,7 +2330,7 @@ tputc(Rune u)
 		if (term.esc&ESC_DCS && strescseq.len == 0 && u == 'q')
 			term.mode |= MODE_SIXEL;
 
-		if (strescseq.len+len >= sizeof(strescseq.buf)-1) {
+		if (strescseq.len+len >= sizeof(strescseq.buf)) {
 			/*
 			 * Here is a bug in terminals. If the user never sends
 			 * some code to stop the str or esc command, then st