Depends on gtest r300, which allows String to contain NUL.
This commit is contained in:
parent
2b43a9ecd1
commit
46642857b1
@ -63,7 +63,7 @@ static const char* ParseGoogleMockFlagValue(const char* str,
|
|||||||
|
|
||||||
// The flag must start with "--gmock_".
|
// The flag must start with "--gmock_".
|
||||||
const String flag_str = String::Format("--gmock_%s", flag);
|
const String flag_str = String::Format("--gmock_%s", flag);
|
||||||
const size_t flag_len = flag_str.GetLength();
|
const size_t flag_len = flag_str.length();
|
||||||
if (strncmp(str, flag_str.c_str(), flag_len) != 0) return NULL;
|
if (strncmp(str, flag_str.c_str(), flag_len) != 0) return NULL;
|
||||||
|
|
||||||
// Skips the flag name.
|
// Skips the flag name.
|
||||||
|
Loading…
Reference in New Issue
Block a user