wendy

inotify based node watcher
git clone git://git.2f30.org/wendy.git
Log | Files | Refs | README | LICENSE

commit a2cde2182b52311df842a36c13fddbc6e416df07
parent 1c5a1113bc593cb3f6c1393fcac680d4768c8d35
Author: Willy Goiffon <dev@z3bra.org>
Date:   Mon, 20 Apr 2020 16:05:16 +0200

Fix segmentation fault in basename()

> From: Camille Lalloué <camille@laserbat.pw>
> Subject: wendy segfault & fix
> To: contact <contact@z3bra.org>
> Date: Sun, 19 Apr 2020 14:04:23 +0200
>
> hi !
>
> i've been enjoying wendy for a while now and updated to the latest version
> today, which appears to segfault on my system i dug a little bit using
> valgrind and think i found the cause (see patch joined with this mail)
>
> thanks & keep up the good work !

Diffstat:
Mwendy.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wendy.c b/wendy.c @@ -51,7 +51,7 @@ char * basename(char *p) { char *b = strrchr(p, '/'); - return *b ? b + 1 : p; + return b ? b + 1 : p; } int