[Positioning] TextFileWriter: fix text writing
We wrote a C string instead of a string into the file stream, which caused valgrind errors.
This commit is contained in:
parent
cf42098cbd
commit
f3f59ff203
|
@ -40,6 +40,6 @@ bool TextFileWriter::write_text(const string &text)
|
|||
if (! file)
|
||||
return false ;
|
||||
|
||||
file << text.c_str() ;
|
||||
file << text ;
|
||||
return true ;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue