fix dirname to handle input of form "foo/" correctly
authorRich Felker <dalias@aerifal.cx>
Wed, 26 Sep 2012 04:56:07 +0000 (00:56 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 26 Sep 2012 04:56:07 +0000 (00:56 -0400)
commit507faa63cb12571c14d66eb37dedbe6adbbf40a8
treee01596e47979931728740b1b2f493d8533577aa1
parent82dc1e2e783815e00a90cd3f681436a80d54a314
fix dirname to handle input of form "foo/" correctly

also optimized a bit.
src/misc/dirname.c