Browse Source

MacOS: Fix sprintf related warning in XCode 14.1

v7.0.9
attila Attila Szarvas 3 years ago
parent
commit
b997e72b62
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_audio_plugin_client/utility/juce_PluginUtilities.cpp

+ 1
- 1
modules/juce_audio_plugin_client/utility/juce_PluginUtilities.cpp View File

@@ -56,7 +56,7 @@ namespace juce
const auto juce_strcat = [] (auto&& head, auto&&... tail) { strcat_s (head, numElementsInArray (head), tail...); };
const auto juce_sscanf = [] (auto&&... args) { sscanf_s (args...); };
#else
const auto juce_sprintf = [] (auto&&... args) { sprintf (args...); };
const auto juce_sprintf = [] (auto&& head, auto&&... tail) { snprintf (head, (size_t) numElementsInArray (head), tail...); };
const auto juce_strcpy = [] (auto&&... args) { strcpy (args...); };
const auto juce_strcat = [] (auto&&... args) { strcat (args...); };
const auto juce_sscanf = [] (auto&&... args) { sscanf (args...); };


Loading…
Cancel
Save