From 4545519f12601d61a3bc48c43448b8e70428aa66 Mon Sep 17 00:00:00 2001 From: igor725 Date: Mon, 3 Jun 2024 09:54:12 +0300 Subject: [PATCH] Implement snprintf_s --- modules/libSceLibcInternal/entry.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/libSceLibcInternal/entry.cpp b/modules/libSceLibcInternal/entry.cpp index 3e7507b..7944315 100644 --- a/modules/libSceLibcInternal/entry.cpp +++ b/modules/libSceLibcInternal/entry.cpp @@ -52,6 +52,10 @@ EXPORT SYSV_ABI int __NID(snprintf)(char* s, size_t n, const char* format, va_li return std::snprintf(s, n, format, args); } +EXPORT SYSV_ABI int __NID(snprintf_s)(char* s, size_t bufsz, size_t n, const char* format, va_list args) { + return ::_snprintf_s(s, bufsz, n, format, args); +} + EXPORT SYSV_ABI int __NID(fflush)(FILE* stream) { return std::fflush(stream); }