mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-10 14:36:12 +00:00
Use c_str() to force the string to be nul-terminated.
llvm-svn: 66279
This commit is contained in:
parent
f49e6643c9
commit
23d7aa62d4
@ -66,7 +66,7 @@ static void CrashHandler(void *Cookie) {
|
||||
}
|
||||
|
||||
if (!TmpStr.empty()) {
|
||||
__crashreporter_info__ = strdup(&TmpStr[0]);
|
||||
__crashreporter_info__ = strdup(TmpStr.c_str());
|
||||
errs() << __crashreporter_info__;
|
||||
errs().flush();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user