summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Bisballe Jensen <larsbisballe@gmail.com>2014-10-23 11:20:08 +0200
committerLars Bisballe Jensen <larsbisballe@gmail.com>2014-10-23 11:20:08 +0200
commit5ef4aaaf94abc885fa3e7941246cd04ee57623c6 (patch)
tree1147119912e81cc4813499871bf214d1b9e52f04
parent906c2715f49590fbbfe9546904f5216724b70deb (diff)
parentd0f8f83749b1df7ad0e18660ae4c80839da7dd0a (diff)
Merge branch 'metadata_v1' of http://git.drumgizmo.org/drumgizmo into metadata_v1
-rw-r--r--plugingui/plugingui.cc2
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");