From e6c5f944ba67923d2d1fffcdd71974db0da03bb7 Mon Sep 17 00:00:00 2001 From: Mathias Vorreiter Pedersen Date: Wed, 20 May 2026 18:13:35 +0100 Subject: [PATCH] C++: Add missing format string part in test. --- .../dataflow/source-sink-tests/sources-and-sinks.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/ql/test/library-tests/dataflow/source-sink-tests/sources-and-sinks.cpp b/cpp/ql/test/library-tests/dataflow/source-sink-tests/sources-and-sinks.cpp index bca2dd136c1..24114ac3217 100644 --- a/cpp/ql/test/library-tests/dataflow/source-sink-tests/sources-and-sinks.cpp +++ b/cpp/ql/test/library-tests/dataflow/source-sink-tests/sources-and-sinks.cpp @@ -139,7 +139,7 @@ void test_scanf_s(FILE *stream) { { int n1, n2; scanf_s( - "%d", + "%d %d", &n1, // $ local_source &n2); // $ local_source } @@ -152,7 +152,7 @@ void test_scanf_s(FILE *stream) { { int n1, n2; char buf[256]; - scanf_s("%d %s", + scanf_s("%d %s %d", &n1, // $ local_source buf, // $ local_source 256, @@ -162,7 +162,7 @@ void test_scanf_s(FILE *stream) { { int n1, n2; char buf[256]; - fscanf_s(stream, "%d %s", + fscanf_s(stream, "%d %s %d", &n1, // $ remote_source buf, // $ remote_source 256,