From d1595d3e49ed51413440ef2684f22c8f4f5d9323 Mon Sep 17 00:00:00 2001 From: Andrews Sobral <andrewssobral@gmail.com> Date: Thu, 15 Aug 2019 12:02:25 +0200 Subject: [PATCH] revert sprintf_s to sprintf related to https://stackoverflow.com/questions/2169016/mac-solution-for-safe-alternatives-to-unsafe-c-c-standard-library-function --- src/algorithms/VuMeter/TBackgroundVuMeter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/algorithms/VuMeter/TBackgroundVuMeter.cpp b/src/algorithms/VuMeter/TBackgroundVuMeter.cpp index 5e5f4db..627d73f 100644 --- a/src/algorithms/VuMeter/TBackgroundVuMeter.cpp +++ b/src/algorithms/VuMeter/TBackgroundVuMeter.cpp @@ -115,9 +115,9 @@ namespace bgslibrary switch (nInd) { - case 0: sprintf_s(buff, "%d", m_nBinSize); break; - case 1: sprintf_s(buff, "%.3f", m_fAlpha); break; - case 2: sprintf_s(buff, "%.2f", m_fThreshold); break; + case 0: sprintf(buff, "%d", m_nBinSize); break; + case 1: sprintf(buff, "%.3f", m_fAlpha); break; + case 2: sprintf(buff, "%.2f", m_fThreshold); break; } csResult = buff; -- GitLab