On 2003-10-04 22:36:53 +0200, Thomas Roessler wrote: > + > +const char *mutt_basename (const char *f) > +{ > + const char *p = strrchr (f, '/'); > + if (p) ++p; > + return p; > +} That's, of course, nonsense. Please attach this patch in addition to the one I posted: --- lib.c 4 Oct 2003 20:34:59 -0000 3.11 +++ lib.c 4 Oct 2003 22:11:01 -0000 @@ -650,6 +650,8 @@ const char *mutt_basename (const char *f) { const char *p = strrchr (f, '/'); - if (p) ++p; - return p; + if (p) + return p + 1; + else + return f; } -- Thomas Roessler · Personal soap box at <http://log.does-not-exist.org/>.
Attachment:
pgpEeX9PbpUaQ.pgp
Description: PGP signature