From 67251f2da9b4df30b1105808122a782e0cf16104 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Wed, 23 Sep 2015 15:01:07 -0700 Subject: [PATCH] Use |strtok| rather than |strtok_r|. As ever, Windows doesn't support the correct function. Change-Id: If16c979e591abda01ce3bf591b9162c210f03932 --- ssl/test/bssl_shim.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ssl/test/bssl_shim.cc b/ssl/test/bssl_shim.cc index 9e30bfce..edae67b9 100644 --- a/ssl/test/bssl_shim.cc +++ b/ssl/test/bssl_shim.cc @@ -230,12 +230,11 @@ static bool InstallCertificate(SSL *ssl) { if (!config->digest_prefs.empty()) { std::unique_ptr> digest_prefs( strdup(config->digest_prefs.c_str())); - char *tokptr = nullptr; std::vector digest_list; for (;;) { - char *token = strtok_r(digest_list.empty() ? digest_prefs.get() : nullptr, - ",", &tokptr); + char *token = + strtok(digest_list.empty() ? digest_prefs.get() : nullptr, ","); if (token == nullptr) { break; }