Use data() instead of c_str() where appropriate

This commit is contained in:
Eelco Dolstra 2012-02-09 18:27:45 +01:00
parent ec2827f5fc
commit d5a5a83ad4
9 changed files with 18 additions and 18 deletions

View file

@ -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;
}
}