summaryrefslogtreecommitdiffstats
path: root/Documentation/user-manual.html.git
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2014-05-07 21:57:08 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-07 22:02:21 -0700
commit2e0a51264f2d8dfdb2ffe016742f6dd52b0f15e2 (patch)
treeab2ca115666930736be6aad8c2fb0540f84e177b /Documentation/user-manual.html.git
parent497d6e3e6c353d69cd6c27f7b573400b82de8ff3 (diff)
downloadsubsurface-2e0a51264f2d8dfdb2ffe016742f6dd52b0f15e2.tar.gz
Fix another dangling pointer
Same problem as the previous commit: toStdString() returns a temporary, and c_str() will return a pointer to internal data, freed at the end of the statement. So get the pointer to be strcpy'ed in the same statement. Changed to toUtf8() to be more explicit about the encoding and to avoid std::string Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Documentation/user-manual.html.git')
0 files changed, 0 insertions, 0 deletions