K 10 svn:author V 2 ed K 8 svn:date V 27 2016-07-28T15:19:47.869836Z K 7 svn:log V 188 Call basename() in a portable way. Pull a copy of the filename string before calling basename(). Change the loop to not return on its own, so we can put a free() statement at the bottom. END