Bug 1287711 - Use correct APIs, a=bustage
authorMartin Thomson <martin.thomson@gmail.com>
Tue, 03 Oct 2017 13:56:12 -0700
changeset 13620 68da790a91ea7e1a38190b4763796419b33a4d81
parent 13619 24729e83ed5c74caea7660d8884d0e448d584d5e
child 13621 965b5533bf61ecf85e71203fa26ab33e60bb7125
push id2400
push usermartin.thomson@gmail.com
push dateTue, 03 Oct 2017 21:23:52 +0000
reviewersbustage
bugs1287711
Bug 1287711 - Use correct APIs, a=bustage
gtests/ssl_gtest/ssl_keylog_unittest.cc
--- a/gtests/ssl_gtest/ssl_keylog_unittest.cc
+++ b/gtests/ssl_gtest/ssl_keylog_unittest.cc
@@ -14,20 +14,20 @@
 namespace nss_test {
 
 static const std::string keylog_file_path = "keylog.txt";
 
 class KeyLogFileTest : public TlsConnectGeneric {
  public:
   void SetUp() {
     TlsConnectTestBase::SetUp();
-    remove(keylog_file_path);
+    remove(keylog_file_path.c_str());
     std::ostringstream sstr;
     sstr << "SSLKEYLOGFILE=" << keylog_file_path;
-    PR_SetEnv(sstr.c_str());
+    PR_SetEnv(sstr.str().c_str());
   }
 
   void CheckKeyLog() {
     std::ifstream f(keylog_file_path);
     std::map<std::string, size_t> labels;
     std::string last_client_random;
     for (std::string line; std::getline(f, line);) {
       if (line[0] == '#') {