aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Maitland Bottoms <bottoms@debian.org>2021-10-20 10:11:16 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2021-10-22 06:35:44 -0700
commitf665c585ee9ea7beec8de94a4d402190225ccf23 (patch)
treeed680c03c7719bdc7407a1c1ee3181302fdca5f9
parent606230b3a0b1db35da8a499ac1f24fa4f8014760 (diff)
downloaduhd-f665c585ee9ea7beec8de94a4d402190225ccf23.tar.gz
uhd-f665c585ee9ea7beec8de94a4d402190225ccf23.tar.bz2
uhd-f665c585ee9ea7beec8de94a4d402190225ccf23.zip
responder: Fix printw function arguments
This is necessary when compiling with -Werror=format-security as Debian package builds do. Thanks to mait for the fix!
-rw-r--r--host/utils/latency/lib/Responder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/utils/latency/lib/Responder.cpp b/host/utils/latency/lib/Responder.cpp
index 65c3e2941..5c8303d25 100644
--- a/host/utils/latency/lib/Responder.cpp
+++ b/host/utils/latency/lib/Responder.cpp
@@ -56,7 +56,7 @@ void Responder::register_stop_signal_handler()
// For ncurses. Print everything in stream to screen
void Responder::FLUSH_SCREEN()
{
- printw(_ss.str().c_str());
+ printw("%s", _ss.str().c_str());
refresh();
_ss.str("");
}