From d0f8f83749b1df7ad0e18660ae4c80839da7dd0a Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Wed, 22 Oct 2014 15:56:39 +0200 Subject: Changed sprintf to snprintf. --- plugingui/plugingui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugingui/plugingui.cc b/plugingui/plugingui.cc index c49d2fd..df357e0 100644 --- a/plugingui/plugingui.cc +++ b/plugingui/plugingui.cc @@ -252,7 +252,7 @@ void PluginGUI::handleMessage(Message *msg) std::string microphone = channels_it->second; char buf[4]; - sprintf(buf, "%d", count); + snprintf(buf, 4, "%d", count); std::string count_str(buf); metadatatext.append("\t"+ count_str + ". " + name + ": " + microphone + "\n"); -- cgit v1.2.3