GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — C++: Add missing format string part in test. · fredatgithub/codeql@e6c5f94

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • cpp/ql/test/library-tests/dataflow/source-sink-tests
    • sources-and-sinks.cpp
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎cpp/ql/test/library-tests/dataflow/source-sink-tests/sources-and-sinks.cpp‎

Copy file name to clipboardExpand all lines: cpp/ql/test/library-tests/dataflow/source-sink-tests/sources-and-sinks.cpp
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void test_scanf_s(FILE *stream) {
139139
{
140140
int n1, n2;
141141
scanf_s(
142-
"%d",
142+
"%d %d",
143143
&n1, // $ local_source
144144
&n2); // $ local_source
145145
}
@@ -152,7 +152,7 @@ void test_scanf_s(FILE *stream) {
152152
{
153153
int n1, n2;
154154
char buf[256];
155-
scanf_s("%d %s",
155+
scanf_s("%d %s %d",
156156
&n1, // $ local_source
157157
buf, // $ local_source
158158
256,
@@ -162,7 +162,7 @@ void test_scanf_s(FILE *stream) {
162162
{
163163
int n1, n2;
164164
char buf[256];
165-
fscanf_s(stream, "%d %s",
165+
fscanf_s(stream, "%d %s %d",
166166
&n1, // $ remote_source
167167
buf, // $ remote_source
168168
256,

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.