SmallString needs 0 termination.
This commit is contained in:
parent
790c34b4f4
commit
c31806dbbf
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user