diff options
-rw-r--r-- | plugingui/plugingui.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |