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:
Tim Jenssen
2023-05-08 16:17:26 +02:00
committed by Marco Bubke
parent 1d183e4de7
commit a946eebd43

View File

@@ -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);