Wed Mar 23 13:37:41 EST 2005 rsc
Thanks for the report. Your fix only sets the terminating
NUL in one case of dirname, and even then only if cleanname
doesn't shorten the name at all: with your fix I believe
that if one did Edit e ../edit.c, you'd still end up with
something like /whatever/edit.ct.c being returned.
We can't set the NUL in the general case because the
dirname might not have had space allocated for it.
Instead I fixed cmdname to add the NUL itself, which it
should have been doing all along.
I didn't understand your comment about button 3 failing.
I click button 3 on unrooted file names in tags all the time
and have no problems. Did you mean it fails after a bogus
Edit e command?
Russ
|