HomeFreeBSD

pmc: Fix stack std::string lifetime

Description

pmc: Fix stack std::string lifetime

It's invalid to reference a C++ string's c_str() buffer after the object
goes out of scope. Adjust the scope of the string to match the use in
write(2) to fix the misuse.

CID: 1393383
Reported by: Coverity

Details

Provenance
cemAuthored on
Parents
rS348077: Link fhlinkat(2) man page
Branches
Unknown
Tags
Unknown