forked from qt-creator/qt-creator
QmlDesigner: fix unterminated access to data()
SmallString is not null terminated. Change-Id: I92346f1befce8afadcf0d5532c17906a7908fff2 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -67,7 +67,7 @@ void Sessions::create()
|
||||
{
|
||||
sqlite3_session *newSession = nullptr;
|
||||
int resultCode = sqlite3session_create(database.backend().sqliteDatabaseHandle(),
|
||||
std::string(databaseName.data()).c_str(),
|
||||
std::string(databaseName).c_str(),
|
||||
&newSession);
|
||||
session.reset(newSession);
|
||||
|
||||
|
Reference in New Issue
Block a user