about summary refs log tree commit diff
path: root/src/nix-worker/nix-worker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-worker/nix-worker.cc')
-rw-r--r--src/nix-worker/nix-worker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc
index f28905a24b8d..eaa686667306 100644
--- a/src/nix-worker/nix-worker.cc
+++ b/src/nix-worker/nix-worker.cc
@@ -135,7 +135,7 @@ static void sigPollHandler(int sigNo)
     catch (Error & e) {
         /* Shouldn't happen. */
         string s = "impossible: " + e.msg() + '\n';
-        write(STDERR_FILENO, s.c_str(), s.size());
+        write(STDERR_FILENO, s.data(), s.size());
         throw;
     }
 }