diff options
Diffstat (limited to 'gtests/google_test/gtest/samples/sample2.cc')
-rw-r--r-- | gtests/google_test/gtest/samples/sample2.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtests/google_test/gtest/samples/sample2.cc b/gtests/google_test/gtest/samples/sample2.cc index be7c4c994..d8e872396 100644 --- a/gtests/google_test/gtest/samples/sample2.cc +++ b/gtests/google_test/gtest/samples/sample2.cc @@ -38,7 +38,7 @@ const char* MyString::CloneCString(const char* a_c_string) { if (a_c_string == nullptr) return nullptr; const size_t len = strlen(a_c_string); - char* const clone = new char[len + 1]; + char* const clone = new char[ len + 1 ]; memcpy(clone, a_c_string, len + 1); return clone; |