[education/rkward] rkward/autotests: Make sure backend log is not interpreted as a format string
Thomas Friedrichsmeier
null at kde.org
Sun May 12 16:29:42 BST 2024
Git commit fdff34ed563a1dacd48e4db107b8b850c59f9189 by Thomas Friedrichsmeier.
Committed on 12/05/2024 at 15:19.
Pushed by tfry into branch 'master'.
Make sure backend log is not interpreted as a format string
M +1 -1 rkward/autotests/core_test.cpp
https://invent.kde.org/education/rkward/-/commit/fdff34ed563a1dacd48e4db107b8b850c59f9189
diff --git a/rkward/autotests/core_test.cpp b/rkward/autotests/core_test.cpp
index 56d082227..9d90f0918 100644
--- a/rkward/autotests/core_test.cpp
+++ b/rkward/autotests/core_test.cpp
@@ -112,7 +112,7 @@ class RKWardCoreTest: public QObject {
if (output.startsWith(oldoutput)) {
output = output.sliced(oldoutput.length());
}
- testLog(qPrintable(output.data()));
+ testLog("%s", qPrintable(output.data()));
}
void waitForBackendStarted() {
More information about the rkward-tracker
mailing list