[#2212] CID26013:

strdup'd the return of a c_str() being returned, as it otherwise
would be destroyed when its string left scope.