[hackers] [PATCH st] Fix null pointer access in strhandle

2021-12-27 Thread suckless
From: Jochen Sprickerhof As the comment above says: "here p = NULL" so strcmp will segfault. This is a regression of 8e31030 and does not seem to be needed. --- st.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/st.c b/st.c index 6783c2b..8d1fbb4 100644 --- a/st.c +++ b

[hackers] [PATCH st v2] Fix null pointer access in strhandle

2021-12-27 Thread suckless
From: Jochen Sprickerhof According to the spec the argument is optional for 104, so p can be NULL as can be tested with printf '\x1b]104\x07'. This is a regression of 8e31030. --- st.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/st.c b/st.c index 6783c2b..de2dd0e 1006

[hackers] [dwm][PATCH] Fix wrong computation in drw_text

2021-08-17 Thread suckless
From: Jochen Sprickerhof In case lpad * 2 > w, w - lpad * 2 wraps around and comparing it with ew is always true. Also shorten the text if the initial width does not fit with padding. --- drw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drw.c b/drw.c index 9c39086..3

[hackers] [svkbd][PATCH] Force installing executable

2021-02-26 Thread suckless
From: Jochen Sprickerhof So we don't fail if it is executed at the same time. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 076c8b0..e82704e 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,7 @@ dist: install: all mkdir -p

[hackers] [surf][PATCH] Document SIGHUP in manpage

2017-11-16 Thread suckless
From: Jochen Sprickerhof --- surf.1 | 8 1 file changed, 8 insertions(+) diff --git a/surf.1 b/surf.1 index 711a9aa..f8ff74e 100644 --- a/surf.1 +++ b/surf.1 @@ -306,6 +306,14 @@ string. .TP .B http_proxy If this variable is set and not empty upon startup, surf will use it as the h