sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 06838e29d367046b9304b392d58ff7075d51c1e1
parent 1a8b37a3f6f91a265d5c9c3ffd65a02d1df051a3
Author: jon <jonrevold@gmail.com>
Date:   Mon, 13 Jul 2020 09:52:19 +0200

fixed 100% BROKEN CODE

Diffstat:
Mdwm.suckless.org/patches/autostart/dwm-autostart-20200610-cb3f58a.diff | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dwm.suckless.org/patches/autostart/dwm-autostart-20200610-cb3f58a.diff b/dwm.suckless.org/patches/autostart/dwm-autostart-20200610-cb3f58a.diff @@ -82,7 +82,7 @@ index 4465af1..2156b49 100644 static char stext[256]; static int screen; static int sw, sh; /* X display screen geometry width, height */ -@@ -1380,6 +1386,81 @@ run(void) +@@ -1380,6 +1386,83 @@ run(void) handler[ev.type](&ev); /* call handler */ } @@ -127,10 +127,12 @@ index 4465af1..2156b49 100644 + /* the XDG conformant path does not exist or is no directory + * so we try ~/.dwm instead + */ -+ if (realloc(pathpfx, strlen(home) + strlen(dwmdir) + 3) == NULL) { ++ char *pathpfx_new = realloc(pathpfx, strlen(home) + strlen(dwmdir) + 3); ++ if(pathpfx_new == NULL) { + free(pathpfx); + return; + } ++ pathpfx = pathpfx_new; + + if (sprintf(pathpfx, "%s/.%s", home, dwmdir) <= 0) { + free(pathpfx);