Fifo: Fix some missing c_str()s for formatting logs

This commit is contained in:
Peter Keresztes Schmidt 2021-03-03 23:31:22 +01:00
parent 1dfa41923b
commit a78236d05c
1 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ bool Fifo::writePacket(std::string filename, ZMPacket &packet) {
if ( !on_blocking_abort ) {
if ( (outfile = fopen(filename.c_str(), "wb")) == nullptr ) {
Error("Can't open %s for writing: %s", filename, strerror(errno));
Error("Can't open %s for writing: %s", filename.c_str(), strerror(errno));
return false;
}
} else {
@ -174,7 +174,7 @@ bool Fifo::write(std::string filename, uint8_t *data, size_t bytes) {
if ( !on_blocking_abort ) {
if ( (outfile = fopen(filename.c_str(), "wb")) == nullptr ) {
Error("Can't open %s for writing: %s", filename, strerror(errno));
Error("Can't open %s for writing: %s", filename.c_str(), strerror(errno));
return false;
}
} else {