about summary refs log tree commit diff
path: root/src/nix-store
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2012-02-09T17·27+0100
committerEelco Dolstra <e.dolstra@tudelft.nl>2012-02-09T17·27+0100
commitd5a5a83ad4fb8aba3b334039f567267a0463ee5a (patch)
treea6ce83d3c595fa987afed1c4dbbe18e82cc18322 /src/nix-store
parentec2827f5fc4fc8081daacb197d40d22a5e429df4 (diff)
Use data() instead of c_str() where appropriate
Diffstat (limited to 'src/nix-store')
-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());
     }
 }