HomeFreeBSD

Don't call basename() and dirname() in an unportable way.

Description

Don't call basename() and dirname() in an unportable way.

POSIX allows these functions to modify their input buffer, so that they
have storage for the return value. Pull copies of the filename before
calling these utility functions.

Details

Provenance
edAuthored on
Parents
rS303442: remove CONSTRUCTORS from kernel linker scripts
Branches
Unknown
Tags
Unknown