On Mon, Nov 26, 2012 at 01:14:42PM +0100, Daniel Mack wrote: > basename is initialized as > > basename = strrchr(pathname,'/') + 1; > > and does hence not contain the leading slash character. Thanks, applied.