Index: net/base/x509_cert_types.cc |
diff --git a/net/base/x509_cert_types.cc b/net/base/x509_cert_types.cc |
index 6beb3ecb21e2c4faa777908688b4eb2ee527c526..11e2338a69b3ecd98122f3848f712210535492d0 100644 |
--- a/net/base/x509_cert_types.cc |
+++ b/net/base/x509_cert_types.cc |
@@ -20,7 +20,7 @@ namespace { |
// untouched otherwise. Returns the parsed integer. |
int ParseIntAndAdvance(const char** field, size_t field_len, bool* ok) { |
int result = 0; |
- *ok &= base::StringToInt(*field, *field + field_len, &result); |
+ *ok &= base::StringToInt(base::StringPiece(*field, field_len), &result); |
*field += field_len; |
return result; |
} |