summaryrefslogtreecommitdiffstats
path: root/mDNSResponder/mDNSWindows/SystemService/Service.c
diff options
context:
space:
mode:
Diffstat (limited to 'mDNSResponder/mDNSWindows/SystemService/Service.c')
-rw-r--r--mDNSResponder/mDNSWindows/SystemService/Service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mDNSResponder/mDNSWindows/SystemService/Service.c b/mDNSResponder/mDNSWindows/SystemService/Service.c
index d175326f..1dea5c79 100644
--- a/mDNSResponder/mDNSWindows/SystemService/Service.c
+++ b/mDNSResponder/mDNSWindows/SystemService/Service.c
@@ -786,7 +786,7 @@ static void ReportStatus( int inType, const char *inFormat, ... )
BOOL ok;
const char * array[ 1 ];
- vsprintf( s, inFormat, args );
+ vsnprintf( s, sizeof( s ), inFormat, args );
array[ 0 ] = s;
ok = ReportEventA( gServiceEventSource, (WORD) inType, 0, MDNSRESPONDER_LOG, NULL, 1, 0, array, NULL );
check_translated_errno( ok, GetLastError(), kUnknownErr );