mirror of
https://github.com/edubart/otclient.git
synced 2025-12-14 20:59:47 +01:00
Fix possible leaks in stdext::format
This commit is contained in:
@@ -48,6 +48,7 @@ typename std::enable_if<std::is_integral<T>::value ||
|
||||
std::is_pointer<T>::value ||
|
||||
std::is_floating_point<T>::value ||
|
||||
std::is_enum<T>::value, T>::type sprintf_cast(const T& t) { return t; }
|
||||
inline const char *sprintf_cast(const char *s) { return s; }
|
||||
inline const char *sprintf_cast(const std::string& s) { return s.c_str(); }
|
||||
|
||||
template<int N> struct expand_snprintf {
|
||||
|
||||
Reference in New Issue
Block a user