about summary refs log tree commit diff
path: root/src/nix-store/nix-store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-store/nix-store.cc')
-rw-r--r--src/nix-store/nix-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index 2e1d3f044bf5..404da2c51f51 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -432,7 +432,7 @@ static void opReadLog(Strings opFlags, Strings opArgs)
 
         /* !!! Make this run in O(1) memory. */
         string log = readFile(logPath);
-        writeFull(STDOUT_FILENO, (const unsigned char *) log.c_str(), log.size());
+        writeFull(STDOUT_FILENO, (const unsigned char *) log.data(), log.size());
     }
 }