1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

MacOS: Fix sprintf related warning in XCode 14.1

This commit is contained in:
attila 2022-12-21 19:00:10 +01:00 committed by Attila Szarvas
parent 55a8b2ac12
commit b997e72b62

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_strcat = [] (auto&& head, auto&&... tail) { strcat_s (head, numElementsInArray (head), tail...); };
const auto juce_sscanf = [] (auto&&... args) { sscanf_s (args...); }; const auto juce_sscanf = [] (auto&&... args) { sscanf_s (args...); };
#else #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_strcpy = [] (auto&&... args) { strcpy (args...); };
const auto juce_strcat = [] (auto&&... args) { strcat (args...); }; const auto juce_strcat = [] (auto&&... args) { strcat (args...); };
const auto juce_sscanf = [] (auto&&... args) { sscanf (args...); }; const auto juce_sscanf = [] (auto&&... args) { sscanf (args...); };