From a757184e5db3112d3de0b69eec7d39b937e396bc Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 25 Jul 2013 15:32:06 +0000 Subject: replace sprintf to mir_snprintf (part 5) git-svn-id: http://svn.miranda-ng.org/main/trunk@5481 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YAMN/src/proto/netlib.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/YAMN/src/proto/netlib.cpp') diff --git a/plugins/YAMN/src/proto/netlib.cpp b/plugins/YAMN/src/proto/netlib.cpp index 0ae92f6f33..e9a1f61dd9 100644 --- a/plugins/YAMN/src/proto/netlib.cpp +++ b/plugins/YAMN/src/proto/netlib.cpp @@ -14,11 +14,11 @@ HANDLE hNetlibUser=NULL; void __stdcall SSL_DebugLog(const char *fmt, ...) { - char str[ 4096 ]; + char str[4096]; va_list vararg; va_start( vararg, fmt ); - int tBytes = _vsnprintf( str, sizeof(str)-1, fmt, vararg ); + int tBytes = mir_vsnprintf(str, SIZEOF(str), fmt, vararg); if ( tBytes == 0 ) return; @@ -36,7 +36,7 @@ HANDLE RegisterNLClient(const char *name) static NETLIBUSER nlu={0}; char desc[128]; - sprintf(desc, Translate("%s connection"),name); + mir_snprintf(desc, SIZEOF(desc), Translate("%s connection"), name); #ifdef DEBUG_COMM DebugLog(CommFile,""); -- cgit v1.2.3