URI: 
       tFix segmentation fault in basename() - wendy - watch files/directories and run commands on any event
  HTML git clone git://z3bra.org/wendy
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit a2cde2182b52311df842a36c13fddbc6e416df07
   DIR parent 1c5a1113bc593cb3f6c1393fcac680d4768c8d35
  HTML 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:
         M wendy.c                             |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
   DIR diff --git a/wendy.c b/wendy.c
       t@@ -51,7 +51,7 @@ char *
        basename(char *p)
        {
                char *b = strrchr(p, '/');
       -        return *b ? b + 1 : p;
       +        return b ? b + 1 : p;
        }
        
        int