projects
/
platform
/
upstream
/
gtest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 1.12.0
[platform/upstream/gtest.git]
/
googletest
/
samples
/
sample2.cc
diff --git
a/googletest/samples/sample2.cc
b/googletest/samples/sample2.cc
index
d8e8723
..
be7c4c9
100644
(file)
--- a/
googletest/samples/sample2.cc
+++ b/
googletest/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;