mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
CPP: Correct typo in OverflowCalculated.cpp example.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
void f(char* string) {
|
||||
// wrong: allocates space for characters, put not zero terminator
|
||||
// wrong: allocates space for characters, but not zero terminator
|
||||
char* buf = malloc(strlen(string));
|
||||
strcpy(buf, string);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user