summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Bus/IvyProbe/IvyProbeDlg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bus/IvyProbe/IvyProbeDlg.cpp b/Bus/IvyProbe/IvyProbeDlg.cpp
index b29fd72..997ae6f 100644
--- a/Bus/IvyProbe/IvyProbeDlg.cpp
+++ b/Bus/IvyProbe/IvyProbeDlg.cpp
@@ -239,7 +239,7 @@ void CIvyProbeDlg::WriteMessage(const char *format, ...)
// format and write the data we were given
va_list args;
va_start(args, format);
- _vsnprintf(str, sizeof(str), format, args);
+ _vsnprintf_s(str, sizeof(str), sizeof(str)-1, format, args);
m_text.AppendString( str );
}