Skip to content

Commit 25beadc

Browse files
MathiasVPgeoffw0
andauthored
Update cpp/ql/test/query-tests/Security/CWE/CWE-079/semmle/CgiXss/search.c
Co-authored-by: Geoffrey White <[email protected]>
1 parent f5d5460 commit 25beadc

File tree

1 file changed

+1
-2
lines changed
  • cpp/ql/test/query-tests/Security/CWE/CWE-079/semmle/CgiXss

1 file changed

+1
-2
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-079/semmle/CgiXss/search.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void good_server1(char* query) {
3737
puts(do_search(query));
3838
}
3939

40-
int scanf(const char *, ...);
40+
int sscanf(const char *s, const char *format, ...);
4141

4242
void good_server2(char* query) {
4343
puts("<p>Query results for ");
@@ -59,4 +59,3 @@ int main(int argc, char** argv) {
5959
good_server2(raw_query);
6060
}
6161
}
62-

0 commit comments

Comments
 (0)