For functions that return char*'s, don't return a c_str() of an

std::string, since as soon as the function returns, the std::string goes out of scope, and the c_str() becomes a dangling pointer, which usually points to the same area as before, but occasionally points to garbage.
Instead, make them return std::string's, and call c_str() on the return value outside the functions. Among other things, this should fix [1999515].

Note that I've only fixed direct c_str() returns for now. There might be some indirect ones that I missed.

git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6139 c06c8d41-db1a-0410-9941-cceddc491573

Created by  dolorous  on June 25, 2008
TPO6FNMPNUSWH4NCKO3VLYNAADEPSAXLUITCCACLZZSY53PKA62QC
Dependencies
In channels
main
Change contents