SmallString needs 0 termination.

This commit is contained in:
Axel Naumann 2013-09-24 12:20:50 +02:00 committed by sftnight
parent 790c34b4f4
commit c31806dbbf
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ namespace cling {
HeaderSearchOptions::Entry &E = Opts.UserEntries[i];
if (!E.IsFramework && E.Group == clang::frontend::System
&& E.IgnoreSysRoot && oldResInc.str() == E.Path) {
E.Path = newResInc.data();
E.Path = newResInc.c_str();
foundOldResInc = true;
}
}

View File

@ -172,7 +172,7 @@ namespace cling {
std::string errMsg;
#else
const void* dyLibHandle
= dlopen(FoundDyLib.data(), RTLD_LAZY|RTLD_GLOBAL);
= dlopen(FoundDyLib.c_str(), RTLD_LAZY|RTLD_GLOBAL);
std::string errMsg;
if (const char* DyLibError = dlerror()) {
errMsg = DyLibError;