HomeFreeBSD

Make code compile when basename() is POSIX compliant.

Description

Make code compile when basename() is POSIX compliant.

The POSIX basename() function is allowed to modify its input buffer,
which means its argument is "char *". Pull a copy of the input string
before computing the base.

Reviewed by: jtl
Differential Revision: https://reviews.freebsd.org/D6465

Details

Provenance
edAuthored on
Reviewer
jtl
Differential Revision
D6465: Make code compile when basename() is POSIX compliant.
Parents
rS300668: Fix build on stable/10.
Branches
Unknown
Tags
Unknown