summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IvyProbe/IvyProbeDlg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/IvyProbe/IvyProbeDlg.cpp b/IvyProbe/IvyProbeDlg.cpp
index b29fd72..997ae6f 100644
--- a/IvyProbe/IvyProbeDlg.cpp
+++ b/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 );
}