CPP: Correct typo in OverflowCalculated.cpp example.

This commit is contained in:
Geoffrey White
2018-11-09 11:31:44 +00:00
parent e03b4f0cb6
commit d5c6f4fd64

View File

@@ -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);