Re: mg(1): dired-jump

2021-03-19 Thread Mark Lumsden
Should this be "if (fname != NULL)"? Some other callers of adjustname() check for a NULL pointer. strlen(NULL) would crash by SIGSEGV; strlen("") would return 0, because "" is a non-NULL pointer to an ASCII NUL '\0'. I agree. Amended diff below. Index: def.h

Re: mg(1): dired-jump

2021-03-18 Thread George Koehler
On Thu, 18 Mar 2021 20:22:44 + (UTC) Mark Lumsden wrote: > This diff was first seen on the tech list just under a year ago. It is > from Philip K. and was tested by George Koehler. I have modified it > slightly. From Philips original post: You sent, or I received, your diff with wrong