Index: third_party/protobuf/src/google/protobuf/util/internal/json_escaping.cc |
diff --git a/third_party/protobuf/src/google/protobuf/util/internal/json_escaping.cc b/third_party/protobuf/src/google/protobuf/util/internal/json_escaping.cc |
index 06d2791bf261175ea78bb2c53e346c47a30ebbd0..24bd554ea3893ab5b5086ea60a2bfcf67dfb922d 100644 |
--- a/third_party/protobuf/src/google/protobuf/util/internal/json_escaping.cc |
+++ b/third_party/protobuf/src/google/protobuf/util/internal/json_escaping.cc |
@@ -255,7 +255,7 @@ StringPiece ToHex(uint16 cp, char* buffer) { |
buffer[3] = kHex[cp & 0x0f]; |
cp >>= 4; |
buffer[2] = kHex[cp & 0x0f]; |
- return StringPiece(buffer).substr(0, 6); |
+ return StringPiece(buffer, 0, 6); |
} |
// Stores the 32-bit unicode code point as its hexadecimal digits in buffer |