Skip to content

Commit d5c6f4f

Browse files
committed
CPP: Correct typo in OverflowCalculated.cpp example.
1 parent e03b4f0 commit d5c6f4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Critical/OverflowCalculated.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
void f(char* string) {
2-
// wrong: allocates space for characters, put not zero terminator
2+
// wrong: allocates space for characters, but not zero terminator
33
char* buf = malloc(strlen(string));
44
strcpy(buf, string);
55

0 commit comments

Comments
 (0)