From a78236d05c543be302d7d4a48126ff20cf89b4e3 Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Wed, 3 Mar 2021 23:31:22 +0100 Subject: [PATCH] Fifo: Fix some missing c_str()s for formatting logs --- src/zm_fifo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_fifo.cpp b/src/zm_fifo.cpp index 09a808bcd..7f7632ba1 100644 --- a/src/zm_fifo.cpp +++ b/src/zm_fifo.cpp @@ -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 {