HomeFreeBSD

MFC r303444 (ed): Call basename() in a portable way.

Description

MFC r303444 (ed): 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.

Approved by: emaste (mentor, blanket MFC)

Details

Provenance
kevansAuthored on
Parents
rS322576: MFC r322328:
Branches
Unknown
Tags
Unknown