Commit 3c676690 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline

SimplePipe: use string raw data for I/O instead of its C representation

parent 6ebdb63e
......@@ -62,7 +62,7 @@ void Pipe::close(int which)
void Pipe::write(string s)
{
if (::write(m_fd[WriteFd], s.c_str(), s.size()) < 0) {
if (::write(m_fd[WriteFd], s.data(), s.size()) < 0) {
cerr << "Error writing to pipe" << endl;
throw exception();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment