From 5ed720eeb1e6c8380dbada8422c318ad1dff1457 Mon Sep 17 00:00:00 2001 From: Wiktor Garbacz Date: Wed, 29 Nov 2023 01:02:56 -0800 Subject: [PATCH] SAPI_RAW_CHECK expects NUL-terminated strings PiperOrigin-RevId: 586244294 Change-Id: I85492eb2f4833a1b31312981265ad3d715dfaa72 --- sandboxed_api/sandbox2/global_forkclient.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandboxed_api/sandbox2/global_forkclient.cc b/sandboxed_api/sandbox2/global_forkclient.cc index 8a6231e..b014931 100644 --- a/sandboxed_api/sandbox2/global_forkclient.cc +++ b/sandboxed_api/sandbox2/global_forkclient.cc @@ -271,7 +271,7 @@ void GlobalForkClient::ForceStart() { "already running"); absl::StatusOr> forkserver = StartGlobalForkServer(); - SAPI_RAW_CHECK(forkserver.ok(), forkserver.status().message().data()); + SAPI_RAW_CHECK(forkserver.ok(), forkserver.status().ToString().c_str()); instance_ = forkserver->release(); }