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

Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
This commit is contained in:
Mathias Vorreiter Pedersen
2021-02-17 11:54:24 +01:00
committed by GitHub
parent f5d5460dde
commit 25beadcb05

View File

@@ -37,7 +37,7 @@ void good_server1(char* query) {
puts(do_search(query));
}
int scanf(const char *, ...);
int sscanf(const char *s, const char *format, ...);
void good_server2(char* query) {
puts("<p>Query results for ");
@@ -59,4 +59,3 @@ int main(int argc, char** argv) {
good_server2(raw_query);
}
}