aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2023-02-22 13:53:37 +1100
committerNeil <nyamatongwe@gmail.com>2023-02-22 13:53:37 +1100
commit353d1f300549f23b7c8c2914fa5d19f5ec6aa48b (patch)
treef32e1a217ab5696429d3bcedfe95cf19c58b0b14 /gtk/PlatGTK.cxx
parent56d6a8af344938367c3d01c3969c212b3d3b9427 (diff)
downloadscintilla-mirror-353d1f300549f23b7c8c2914fa5d19f5ec6aa48b.tar.gz
Remove _CRT_SECURE_NO_DEPRECATE.
Replace [v]sprintf with bounds checked [v]snprintf.
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rwxr-xr-xgtk/PlatGTK.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index e73e4678d..e939b87fb 100755
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -2180,7 +2180,7 @@ void Platform::DebugPrintf(const char *format, ...) noexcept {
char buffer[2000];
va_list pArguments;
va_start(pArguments, format);
- vsprintf(buffer, format, pArguments);
+ vsnprintf(buffer, std::size(buffer), format, pArguments);
va_end(pArguments);
Platform::DebugDisplay(buffer);
}