aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-01-19 16:03:05 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-03-03 13:15:02 +0000
commit681702ad33447536d6af2bc53c93918025c04463 (patch)
tree5bb14313774109347c68932ca52d1bcbc0032ed5
parent9819a81a96ce7b504144cfda94c8b70c3ab1671e (diff)
shiboken6: Fix parsing of project files
For key/value pairs specified without space after '=', the key would be truncated. Change-Id: I154b1685ca8aab2f13fb916290cde17bc972afea Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit f726b4f406d15a9b85e5ced8bc18fb2f4da1b850) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--sources/shiboken6/generator/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/generator/main.cpp b/sources/shiboken6/generator/main.cpp
index ec0cf5de9..2c8bb54ac 100644
--- a/sources/shiboken6/generator/main.cpp
+++ b/sources/shiboken6/generator/main.cpp
@@ -110,7 +110,7 @@ static bool processProjectFile(QFile &projectFile, CommandLineArguments &args)
QByteArray key;
QString value;
if (split > 0) {
- key = line.left(split - 1).trimmed();
+ key = line.left(split).trimmed();
value = QString::fromUtf8(line.mid(split + 1).trimmed());
} else {
key = line;