[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:32:29 BST 2024


Git commit a250f5fda2882b4174623e94ce538a774c3bee77 by Thomas Friedrichsmeier.
Committed on 11/05/2024 at 09:48.
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/a250f5fda2882b4174623e94ce538a774c3bee77

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