mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
5 lines
153 B
C++
5 lines
153 B
C++
void f(char s[]) {
|
|
int size = sizeof(s); //wrong: s is now a char*, not an array.
|
|
//sizeof(s) will evaluate to sizeof(char *)
|
|
}
|